Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002077/0.002077, allocations: 109.6 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002629/0.002629, allocations: 192 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.692/1.692, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 39.94 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3533, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004804/0.3582, allocations: 2.933 MB / 403.7 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.3597, allocations: 0.7167 MB / 404.4 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.3599, allocations: 4 kB / 404.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.3601, allocations: 51.5 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002661/0.3604, allocations: 103.1 kB / 404.5 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003518/0.3608, allocations: 103.8 kB / 404.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.3612, allocations: 402.3 kB / 405 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002671/0.3615, allocations: 131.2 kB / 405.2 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001993/0.3617, allocations: 155.4 kB / 405.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.3619, allocations: 155.4 kB / 405.5 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.5e-05/0.362, allocations: 39.94 kB / 405.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.416e-05/0.3621, allocations: 40 kB / 405.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.83e-05/0.3622, allocations: 87.69 kB / 405.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.3624, allocations: 171.2 kB / 405.8 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004796/0.3628, allocations: 430.2 kB / 406.2 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.3629, allocations: 4 kB / 406.2 MB, free: 3.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3629, allocations: 0 / 406.2 MB, free: 3.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.3629, allocations: 0 / 406.2 MB, free: 3.387 MB / 318.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.001363/0.3643, allocations: 0.632 MB / 406.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3643, allocations: 8.031 kB / 406.9 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.017e-05/0.3644, allocations: 36.75 kB / 406.9 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.3648, allocations: 287.7 kB / 407.2 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.3649, allocations: 16.94 kB / 407.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.239e-05/0.3649, allocations: 28.38 kB / 407.2 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005211/0.3654, allocations: 288.9 kB / 407.5 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.3655, allocations: 4 kB / 407.5 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.326e-05/0.3655, allocations: 8 kB / 407.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.3655, allocations: 11.94 kB / 407.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/0.3659, allocations: 202.2 kB / 407.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.3678, allocations: 1.156 MB / 408.9 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005396/0.3683, allocations: 224 kB / 409.1 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.3686, allocations: 136.8 kB / 409.2 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.3686, allocations: 0 / 409.2 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003078/0.369, allocations: 174.8 kB / 409.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.312e-06/0.369, allocations: 0 / 409.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001532/0.3705, allocations: 0.5128 MB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.3706, allocations: 136.5 kB / 410 MB, free: 15.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.3709, allocations: 241 kB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.3709, allocations: 33.64 kB / 410.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.3712, allocations: 176.6 kB / 410.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.244e-05/0.3712, allocations: 71.39 kB / 410.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.783e-05/0.3713, allocations: 53.73 kB / 410.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.3715, allocations: 334.8 kB / 410.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.3717, allocations: 71.97 kB / 411 MB, free: 14.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.3719, allocations: 129.1 kB / 411.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.3722, allocations: 171.3 kB / 411.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3722, allocations: 0 / 411.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005002/0.3727, allocations: 294.2 kB / 411.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3728, allocations: 4 kB / 411.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3728, allocations: 8.094 kB / 411.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.3731, allocations: 84.81 kB / 411.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.3734, allocations: 31.92 kB / 411.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/0.3759, allocations: 2.142 MB / 413.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.3761, allocations: 31.97 kB / 413.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.3762, allocations: 12 kB / 413.9 MB, free: 11.21 MB / 334.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.0001695/0.3764, allocations: 150.5 kB / 414 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/0.3764, allocations: 31.78 kB / 414.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.684e-05/0.3765, allocations: 26.19 kB / 414.1 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3765, allocations: 7.938 kB / 414.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3765, allocations: 0 / 414.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3765, allocations: 11.98 kB / 414.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009398/0.3774, allocations: 0.7675 MB / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3775, allocations: 0 / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.3776, allocations: 23.98 kB / 414.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002467/0.3778, allocations: 84.8 kB / 415 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.3779, allocations: 8 kB / 415 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.38, allocations: 2.147 MB / 417.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.38, allocations: 0 / 417.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006696/0.3807, allocations: 457.7 kB / 417.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.3808, allocations: 128.9 kB / 417.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.3809, allocations: 4 kB / 417.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.3811, allocations: 19.98 kB / 417.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.708e-05/0.3812, allocations: 31.95 kB / 417.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.3812, allocations: 4 kB / 417.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.3814, allocations: 180.5 kB / 418 MB, free: 6.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3814, allocations: 0 / 418 MB, free: 6.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000461/0.3819, allocations: 95.83 kB / 418 MB, free: 6.809 MB / 334.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.000166/0.382, allocations: 111.2 kB / 418.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007036/0.3828, allocations: 357.3 kB / 418.5 MB, free: 6.332 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3828, allocations: 4.297 kB / 418.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.3832, allocations: 270.4 kB / 418.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.3836, allocations: 64.86 kB / 418.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.3848, allocations: 0.5932 MB / 419.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.3852, allocations: 0.7635 MB / 420.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.262e-05/0.3853, allocations: 22.3 kB / 420.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.766e-05/0.3854, allocations: 15.44 kB / 420.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3854, allocations: 4 kB / 420.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of Templates: time 0.009741/0.3951, allocations: 4.919 MB / 425.2 MB, free: 15.68 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches