Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 186.1 kB / 8.136 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.146/1.146, allocations: 221.4 MB / 229.9 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008641/0.0008641, allocations: 108.1 kB / 280.8 MB, free: 1.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.867e-06/8.897e-06, allocations: 4 kB / 336.5 MB, free: 9.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.187, allocations: 50.38 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08585/0.2729, allocations: 83.29 MB / 470.2 MB, free: 3.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.2731, allocations: 81.11 kB / 470.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03038/0.3035, allocations: 10.96 MB / 481.2 MB, free: 8.484 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.182e-05/0.3036, allocations: 23.92 kB / 481.2 MB, free: 8.461 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001235/0.3048, allocations: 0.792 MB / 482 MB, free: 7.621 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.3049, allocations: 8.031 kB / 482 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.305, allocations: 71.25 kB / 482.1 MB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006124/0.3056, allocations: 409.6 kB / 482.5 MB, free: 7.102 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.3056, allocations: 12 kB / 482.5 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.313e-05/0.3057, allocations: 24 kB / 482.6 MB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005322/0.3062, allocations: 270.4 kB / 482.8 MB, free: 6.801 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006046/0.3069, allocations: 360.7 kB / 483.2 MB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3069, allocations: 4 kB / 483.2 MB, free: 6.422 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.3069, allocations: 7.984 kB / 483.2 MB, free: 6.414 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.3069, allocations: 8 kB / 483.2 MB, free: 6.406 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.3093, allocations: 1.669 MB / 484.9 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004284/0.3098, allocations: 293.3 kB / 485.1 MB, free: 4.352 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000244/0.31, allocations: 166.8 kB / 485.3 MB, free: 4.188 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.3101, allocations: 7.984 kB / 485.3 MB, free: 4.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/0.3104, allocations: 238 kB / 485.5 MB, free: 3.918 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.743e-06/0.3104, allocations: 0 / 485.5 MB, free: 3.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008592/0.3113, allocations: 405.6 kB / 485.9 MB, free: 3.504 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.405e-05/0.3114, allocations: 195.9 kB / 486.1 MB, free: 3.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004783/0.3119, allocations: 405.1 kB / 486.5 MB, free: 2.863 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.3119, allocations: 25.7 kB / 486.6 MB, free: 2.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.312, allocations: 204.3 kB / 486.8 MB, free: 2.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.648e-05/0.3121, allocations: 118.3 kB / 486.9 MB, free: 2.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/0.3122, allocations: 3.938 kB / 486.9 MB, free: 2.508 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3123, allocations: 358.8 kB / 487.2 MB, free: 2.148 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.3125, allocations: 108.9 kB / 487.3 MB, free: 2.043 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.3128, allocations: 192.4 kB / 487.5 MB, free: 1.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.313, allocations: 113.6 kB / 487.6 MB, free: 1.715 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.313, allocations: 3.938 kB / 487.6 MB, free: 1.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006891/0.3137, allocations: 417.4 kB / 488 MB, free: 1.285 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.3138, allocations: 4 kB / 488 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3138, allocations: 3.938 kB / 488 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005171/0.3143, allocations: 151.4 kB / 488.2 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.3146, allocations: 43.92 kB / 488.2 MB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004149/0.3187, allocations: 5.324 MB / 493.6 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004159/0.3191, allocations: 55.72 kB / 493.6 MB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.3192, allocations: 12.06 kB / 493.6 MB, free: 11.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.3193, allocations: 127.1 kB / 493.8 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.488e-05/0.3194, allocations: 47.53 kB / 493.8 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009086/0.3203, allocations: 444.9 kB / 494.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3203, allocations: 4 kB / 494.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.3204, allocations: 3.906 kB / 494.2 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3204, allocations: 3.984 kB / 494.2 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005211/0.3209, allocations: 441.7 kB / 494.7 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3209, allocations: 0 / 494.7 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.3211, allocations: 31.91 kB / 494.7 MB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004179/0.3215, allocations: 151.4 kB / 494.9 MB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.3215, allocations: 3.984 kB / 494.9 MB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003939/0.3255, allocations: 5.313 MB / 0.4884 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3255, allocations: 0 / 0.4884 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009307/0.3264, allocations: 459.3 kB / 0.4889 GB, free: 3.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.3267, allocations: 172.3 kB / 0.4891 GB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.081e-05/0.3268, allocations: 4.062 kB / 0.4891 GB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.3271, allocations: 31.97 kB / 0.4891 GB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.701e-05/0.3272, allocations: 35.94 kB / 0.4891 GB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.82e-05/0.3273, allocations: 12 kB / 0.4891 GB, free: 3.391 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000365/0.3276, allocations: 319.1 kB / 0.4894 GB, free: 3.082 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005765/0.3282, allocations: 159.6 kB / 0.4896 GB, free: 2.926 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007038/0.3289, allocations: 325.4 kB / 0.4899 GB, free: 2.699 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008819/0.3298, allocations: 0.7017 MB / 0.4906 GB, free: 1.957 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3298, allocations: 0 / 0.4906 GB, free: 1.957 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000565/0.3304, allocations: 0.5694 MB / 0.4911 GB, free: 1.348 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.3309, allocations: 89.98 kB / 0.4912 GB, free: 1.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.3323, allocations: 0.6388 MB / 0.4918 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.09676/0.4291, allocations: 0.8976 MB / 0.4927 GB, free: 134.8 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.4291, allocations: 0 / 0.4927 GB, free: 134.8 MB / 378.7 MB Notification: Performance of Templates: time 0.01115/0.4403, allocations: 7.961 MB / 0.5005 GB, free: 134.7 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches