Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007617/0.0007674, allocations: 91.53 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009483/0.0009483, allocations: 196.4 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.8 MB / 246.8 MB, free: 9.762 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003061/0.0003064, allocations: 8 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1825, allocations: 51.52 MB / 359.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00892/0.1915, allocations: 3.624 MB / 362.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005693/0.1972, allocations: 1.582 MB / 364.5 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008112/0.1981, allocations: 8 kB / 364.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.1997, allocations: 219.2 kB / 364.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0019/0.2016, allocations: 266.6 kB / 365 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00144/0.2031, allocations: 231.6 kB / 365.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001675/0.2048, allocations: 0.7005 MB / 365.9 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003974/0.2052, allocations: 149.7 kB / 366 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007251/0.2059, allocations: 250.9 kB / 366.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008101/0.2067, allocations: 266.8 kB / 366.5 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.2069, allocations: 24 kB / 366.6 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004534/0.2074, allocations: 75.91 kB / 366.6 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002814/0.2077, allocations: 119.5 kB / 366.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006555/0.2084, allocations: 300.1 kB / 367 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.2096, allocations: 0.6576 MB / 367.7 MB, free: 4.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2096, allocations: 0 / 367.7 MB, free: 4.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.2096, allocations: 0 / 367.7 MB, free: 4.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.222e-05/0.2096, allocations: 0 / 367.7 MB, free: 4.598 MB / 302.1 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.002709/0.2124, allocations: 0.8636 MB / 368.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.473e-05/0.2124, allocations: 8.031 kB / 368.6 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005225/0.213, allocations: 80.17 kB / 368.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.214, allocations: 418.7 kB / 369.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.466e-05/0.2141, allocations: 33.31 kB / 369.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.2142, allocations: 40.12 kB / 369.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.2155, allocations: 445.5 kB / 369.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.2155, allocations: 0 / 369.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.256e-05/0.2156, allocations: 16 kB / 369.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.2156, allocations: 12 kB / 369.6 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009175/0.2166, allocations: 315.8 kB / 369.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004061/0.2206, allocations: 1.722 MB / 371.6 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009243/0.2216, allocations: 375.9 kB / 372 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2888/0.5104, allocations: 180 kB / 372.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.487e-05/0.5106, allocations: 5.156 kB / 372.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000788/0.5114, allocations: 260.3 kB / 372.4 MB, free: 19.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 3.406e-06/0.5114, allocations: 0 / 372.4 MB, free: 19.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003127/0.5145, allocations: 1.037 MB / 373.5 MB, free: 19.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.5146, allocations: 191.4 kB / 373.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.5157, allocations: 0.5036 MB / 374.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.569e-05/0.5157, allocations: 37.58 kB / 374.2 MB, free: 19.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000238/0.516, allocations: 263.4 kB / 374.4 MB, free: 18.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.5161, allocations: 119.5 kB / 374.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.824e-05/0.5162, allocations: 40.34 kB / 374.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.5164, allocations: 360.2 kB / 374.9 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.5167, allocations: 122 kB / 375.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003874/0.5171, allocations: 222.1 kB / 375.3 MB, free: 18.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005269/0.5177, allocations: 272.5 kB / 375.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.5177, allocations: 0 / 375.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001101/0.5188, allocations: 482.1 kB / 376 MB, free: 17.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.5188, allocations: 6.344 kB / 376 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.5188, allocations: 1.125 kB / 376 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006844/0.5195, allocations: 162.2 kB / 376.2 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.5198, allocations: 54.8 kB / 376.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004471/0.5243, allocations: 5.95 MB / 382.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005011/0.5248, allocations: 63.38 kB / 382.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.5248, allocations: 14.23 kB / 382.3 MB, free: 12.04 MB / 302.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: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003158/0.5252, allocations: 191.2 kB / 382.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.367e-05/0.5253, allocations: 57.97 kB / 382.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.5254, allocations: 58.36 kB / 382.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.5254, allocations: 6.609 kB / 382.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.5254, allocations: 4.75 kB / 382.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.5254, allocations: 1.875 kB / 382.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006652/0.5261, allocations: 498.1 kB / 383.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.5261, allocations: 0.5625 kB / 383.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.5263, allocations: 34.48 kB / 383.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004672/0.5267, allocations: 160.5 kB / 383.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.5268, allocations: 9.281 kB / 383.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/0.5313, allocations: 5.806 MB / 389.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5313, allocations: 0 / 389.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.5328, allocations: 0.5144 MB / 389.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003092/0.5332, allocations: 164.4 kB / 389.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.087e-05/0.5333, allocations: 7.656 kB / 389.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003201/0.5336, allocations: 37.97 kB / 389.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002442/0.5338, allocations: 53.81 kB / 389.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-05/0.5339, allocations: 14.27 kB / 389.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006271/0.5345, allocations: 371.4 kB / 390.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5345, allocations: 0.8125 kB / 390.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001027/0.5356, allocations: 164.7 kB / 390.4 MB, free: 5.125 MB / 302.1 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,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001236/0.5368, allocations: 428.9 kB / 390.8 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.538, allocations: 0.8086 MB / 391.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.538, allocations: 1.031 kB / 391.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006153/0.5387, allocations: 0.6621 MB / 392.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005874/0.5393, allocations: 108.6 kB / 392.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.5415, allocations: 1.192 MB / 393.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005098/0.542, allocations: 0.8635 MB / 394.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.5423, allocations: 56.78 kB / 394.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.086e-05/0.5424, allocations: 30.75 kB / 394.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.5424, allocations: 0 / 394.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of Templates: time 0.01764/0.56, allocations: 8.726 MB / 403.2 MB, free: 15.16 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches