Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001443/0.001443, allocations: 117.9 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001607/0.001607, allocations: 214.5 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.64/1.64, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003279/0.003279, allocations: 63.91 kB / 373.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.141, allocations: 53.31 MB / 427.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004473/0.1455, allocations: 2.956 MB / 430.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.147, allocations: 0.8063 MB / 430.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.1472, allocations: 7.938 kB / 430.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000174/0.1474, allocations: 47.5 kB / 431 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.1476, allocations: 99.12 kB / 431.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.1479, allocations: 119.8 kB / 431.2 MB, free: 404 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2415/0.3894, allocations: 410.4 kB / 431.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.3898, allocations: 88.92 kB / 431.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005232/0.3903, allocations: 158.5 kB / 431.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002948/0.3906, allocations: 167.8 kB / 432 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.448e-05/0.3907, allocations: 38.56 kB / 432 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.3908, allocations: 40.33 kB / 432.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.175e-05/0.3909, allocations: 73.86 kB / 432.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002366/0.3911, allocations: 181.3 kB / 432.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006262/0.3917, allocations: 442.1 kB / 432.8 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3917, allocations: 4.594 kB / 432.8 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3918, allocations: 0.6562 kB / 432.8 MB, free: 8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3918, allocations: 0 / 432.8 MB, free: 8 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001125/0.3929, allocations: 0.6293 MB / 433.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.3929, allocations: 8.75 kB / 433.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000225/0.3932, allocations: 50.14 kB / 433.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004461/0.3936, allocations: 289.6 kB / 433.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.3936, allocations: 19.75 kB / 433.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.028e-05/0.3937, allocations: 26.56 kB / 433.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/0.3942, allocations: 288.5 kB / 434.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3942, allocations: 3.938 kB / 434.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.3942, allocations: 9.812 kB / 434.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3942, allocations: 6.188 kB / 434.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003807/0.3946, allocations: 207.2 kB / 434.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.3963, allocations: 1.147 MB / 435.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005241/0.3968, allocations: 199.6 kB / 435.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.3971, allocations: 128.2 kB / 435.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.3972, allocations: 2.188 kB / 435.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000296/0.3975, allocations: 174.1 kB / 435.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.014e-06/0.3975, allocations: 0 / 435.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001529/0.399, allocations: 0.515 MB / 436.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.3991, allocations: 136 kB / 436.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.3994, allocations: 240.9 kB / 436.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/0.3994, allocations: 31.38 kB / 436.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.3995, allocations: 174 kB / 437 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.673e-05/0.3996, allocations: 69.84 kB / 437.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.3997, allocations: 61.58 kB / 437.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.285e-05/0.3998, allocations: 334.5 kB / 437.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.4, allocations: 71.16 kB / 437.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.4001, allocations: 124.7 kB / 437.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003079/0.4005, allocations: 171.3 kB / 437.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4005, allocations: 1 kB / 437.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005405/0.401, allocations: 288.7 kB / 438.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.401, allocations: 6.234 kB / 438.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.401, allocations: 1.156 kB / 438.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003762/0.4014, allocations: 96.58 kB / 438.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.4015, allocations: 26.94 kB / 438.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.4036, allocations: 2.141 MB / 440.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.4039, allocations: 36.86 kB / 440.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.4039, allocations: 7.844 kB / 440.4 MB, free: 3.543 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.4041, allocations: 153.6 kB / 440.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/0.4041, allocations: 29.02 kB / 440.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.28e-05/0.4042, allocations: 36.52 kB / 440.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.4042, allocations: 2.625 kB / 440.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4042, allocations: 2.344 kB / 440.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4042, allocations: 0.7031 kB / 440.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.4052, allocations: 0.7672 MB / 441.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4052, allocations: 1.188 kB / 441.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.4053, allocations: 27.55 kB / 441.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000286/0.4056, allocations: 84.7 kB / 441.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.4056, allocations: 6.797 kB / 441.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002025/0.4077, allocations: 2.147 MB / 443.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4077, allocations: 4.281 kB / 443.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006832/0.4083, allocations: 448.6 kB / 444.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.4085, allocations: 132.7 kB / 444.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.486e-05/0.4085, allocations: 7 kB / 444.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.4087, allocations: 17.84 kB / 444.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4088, allocations: 30.08 kB / 444.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.4089, allocations: 9.516 kB / 444.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001863/0.409, allocations: 174.9 kB / 444.5 MB, free: 400 kB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.409, allocations: 4.062 kB / 444.5 MB, free: 396 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005284/0.4096, allocations: 89.42 kB / 444.6 MB, free: 380 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000141/0.4097, allocations: 109.5 kB / 444.7 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007555/0.4105, allocations: 349.4 kB / 445 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4105, allocations: 192 / 445 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004549/0.4109, allocations: 256.3 kB / 445.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004787/0.4114, allocations: 67.84 kB / 445.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.4128, allocations: 0.6019 MB / 445.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.4133, allocations: 0.7724 MB / 446.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001343/0.4134, allocations: 23.72 kB / 446.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.605e-05/0.4135, allocations: 19.22 kB / 446.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4135, allocations: 0 / 446.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of Templates: time 0.0131/0.4266, allocations: 4.952 MB / 451.7 MB, free: 14.46 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.102113062515855]