Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001783/0.001783, allocations: 161.7 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 3.938 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.354e-05, allocations: 2.312 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004589/0.004613, allocations: 2.748 MB / 275.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.006272, allocations: 0.7711 MB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.006451, allocations: 7.938 kB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.006611, allocations: 47.5 kB / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002635/0.006874, allocations: 115 kB / 276 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003489/0.007223, allocations: 107.8 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005665/0.007789, allocations: 430.1 kB / 276.5 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.007994, allocations: 79.67 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004813/0.008475, allocations: 247.4 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.008714, allocations: 123.6 kB / 277 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.321e-05/0.008777, allocations: 40 kB / 277 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.128e-05/0.008868, allocations: 40 kB / 277.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.866e-05/0.008947, allocations: 75.75 kB / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.009115, allocations: 119.7 kB / 277.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005993/0.009715, allocations: 450.7 kB / 277.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.009717, allocations: 0 / 277.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.009718, allocations: 0 / 277.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.009732, allocations: 4 kB / 277.7 MB, free: 12.42 MB / 266.7 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.001111/0.01084, allocations: 0.5567 MB / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.01087, allocations: 12.03 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002904/0.01116, allocations: 72.62 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.01157, allocations: 226.1 kB / 278.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/0.0116, allocations: 20.88 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.01166, allocations: 32.36 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006087/0.01226, allocations: 339.5 kB / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.01228, allocations: 192 / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.01231, allocations: 12.38 kB / 278.9 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.01232, allocations: 7.938 kB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004505/0.01277, allocations: 205.8 kB / 279.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.01475, allocations: 0.9936 MB / 280.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005519/0.0153, allocations: 194.7 kB / 280.3 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003331/0.01563, allocations: 128.7 kB / 280.5 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.01565, allocations: 8 kB / 280.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003659/0.01602, allocations: 218.1 kB / 280.7 MB, free: 9.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.362e-06/0.01602, allocations: 4 kB / 280.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001494/0.01751, allocations: 449 kB / 281.1 MB, free: 8.781 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.01762, allocations: 136.5 kB / 281.3 MB, free: 8.617 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.01792, allocations: 229.8 kB / 281.5 MB, free: 8.383 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.01796, allocations: 33.7 kB / 281.5 MB, free: 8.344 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.01811, allocations: 176.6 kB / 281.7 MB, free: 8.168 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.998e-05/0.01819, allocations: 71.42 kB / 281.8 MB, free: 8.098 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.01829, allocations: 49.66 kB / 281.8 MB, free: 8.043 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.0185, allocations: 334.8 kB / 282.1 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.01868, allocations: 75.97 kB / 282.2 MB, free: 7.633 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002676/0.01895, allocations: 180.5 kB / 282.4 MB, free: 7.426 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003387/0.01928, allocations: 162 kB / 282.5 MB, free: 7.258 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.01929, allocations: 3.938 kB / 282.5 MB, free: 7.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006116/0.0199, allocations: 298.8 kB / 282.8 MB, free: 6.953 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.01991, allocations: 4.125 kB / 282.8 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.01992, allocations: 4 kB / 282.8 MB, free: 6.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003576/0.02028, allocations: 92.75 kB / 282.9 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.02042, allocations: 31.97 kB / 283 MB, free: 6.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00314/0.02356, allocations: 2.001 MB / 285 MB, free: 4.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.02378, allocations: 31.81 kB / 285 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.02381, allocations: 11.98 kB / 285 MB, free: 4.68 MB / 266.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: 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.0001943/0.024, allocations: 145.8 kB / 285.2 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.306e-05/0.02406, allocations: 35.8 kB / 285.2 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.072e-05/0.02413, allocations: 30.27 kB / 285.2 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.02414, allocations: 8.062 kB / 285.2 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.02414, allocations: 0 / 285.2 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.02415, allocations: 7.922 kB / 285.2 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.02523, allocations: 0.6554 MB / 285.9 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.02523, allocations: 0 / 285.9 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.02535, allocations: 19.98 kB / 285.9 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002788/0.02563, allocations: 80.81 kB / 286 MB, free: 3.645 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.02566, allocations: 11.98 kB / 286 MB, free: 3.633 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002679/0.02834, allocations: 2.005 MB / 288 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.02834, allocations: 0 / 288 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008058/0.02914, allocations: 464.6 kB / 288.5 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.02926, allocations: 47.8 kB / 288.5 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.476e-05/0.0293, allocations: 8 kB / 288.5 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.02951, allocations: 19.98 kB / 288.5 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.02962, allocations: 31.94 kB / 288.6 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.131e-05/0.02965, allocations: 15.92 kB / 288.6 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001978/0.02985, allocations: 165.2 kB / 288.7 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02985, allocations: 4 kB / 288.7 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004762/0.03033, allocations: 87.89 kB / 288.8 MB, free: 0.6758 MB / 266.7 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.0001582/0.03049, allocations: 110.4 kB / 288.9 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007711/0.03126, allocations: 353.2 kB / 289.3 MB, free: 212 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.03126, allocations: 0 / 289.3 MB, free: 212 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004931/0.03175, allocations: 258.6 kB / 289.5 MB, free: 15.94 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.03217, allocations: 63.03 kB / 289.6 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.03342, allocations: 0.5639 MB / 290.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.03362, allocations: 159.5 kB / 290.3 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.618e-05/0.03372, allocations: 22.28 kB / 290.3 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.339e-05/0.03377, allocations: 20.5 kB / 290.4 MB, free: 15.07 MB / 282.7 MB Notification: Performance of SimCode: time 4.61e-07/0.03377, allocations: 0 / 290.4 MB, free: 15.07 MB / 282.7 MB Notification: Performance of Templates: time 0.01045/0.04422, allocations: 4.553 MB / 294.9 MB, free: 10.61 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 4.581321747973561]