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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 113 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 190.9 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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=5050,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=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 59.89 kB / 366.8 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08726/0.08875, allocations: 52.12 MB / 419 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004118/0.09287, allocations: 2.943 MB / 421.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.0941, allocations: 0.7245 MB / 422.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.09423, allocations: 8 kB / 422.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.09439, allocations: 51.5 kB / 422.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.09458, allocations: 99.11 kB / 422.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.09485, allocations: 103.8 kB / 422.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004393/0.09529, allocations: 406.4 kB / 423.3 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.09547, allocations: 91.27 kB / 423.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.09567, allocations: 155.4 kB / 423.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.09591, allocations: 167.3 kB / 423.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.614e-05/0.09596, allocations: 36 kB / 423.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.138e-05/0.09602, allocations: 36 kB / 423.8 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.74e-05/0.0961, allocations: 75.7 kB / 423.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.09629, allocations: 179.2 kB / 424 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004653/0.09675, allocations: 434.3 kB / 424.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.09676, allocations: 0 / 424.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09676, allocations: 0 / 424.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.09676, allocations: 0 / 424.4 MB, free: 6.594 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.001056/0.09782, allocations: 0.6282 MB / 425.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.09786, allocations: 12.03 kB / 425.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.068e-05/0.09793, allocations: 32.75 kB / 425.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.09833, allocations: 291.7 kB / 425.4 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.09836, allocations: 24.94 kB / 425.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.073e-05/0.09841, allocations: 24.38 kB / 425.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005272/0.09894, allocations: 296.8 kB / 425.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.09895, allocations: 0 / 425.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.09898, allocations: 12 kB / 425.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.09899, allocations: 8 kB / 425.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004203/0.09941, allocations: 202.1 kB / 425.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.1012, allocations: 1.148 MB / 427.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.1017, allocations: 210.5 kB / 427.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.102, allocations: 120.8 kB / 427.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.102, allocations: 0 / 427.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.1023, allocations: 162.7 kB / 427.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.363e-06/0.1023, allocations: 4 kB / 427.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001444/0.1037, allocations: 0.5087 MB / 428.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/0.1038, allocations: 140.5 kB / 428.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002602/0.1041, allocations: 241 kB / 428.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.1041, allocations: 33.7 kB / 428.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.1042, allocations: 172.6 kB / 428.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.913e-05/0.1043, allocations: 75.38 kB / 428.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.361e-05/0.1044, allocations: 49.7 kB / 428.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1046, allocations: 334.8 kB / 429.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.1047, allocations: 75.97 kB / 429.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.1049, allocations: 129.1 kB / 429.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/0.1053, allocations: 168 kB / 429.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1053, allocations: 4.031 kB / 429.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005346/0.1058, allocations: 286.2 kB / 429.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.1058, allocations: 7.984 kB / 429.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1058, allocations: 0 / 429.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003428/0.1062, allocations: 88.75 kB / 429.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.1063, allocations: 31.92 kB / 429.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/0.1088, allocations: 2.15 MB / 432 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.109, allocations: 27.88 kB / 432.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.109, allocations: 8 kB / 432.1 MB, free: 14.46 MB / 366.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.0001788/0.1092, allocations: 150.5 kB / 432.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.592e-05/0.1093, allocations: 35.78 kB / 432.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.322e-05/0.1093, allocations: 26.19 kB / 432.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1093, allocations: 4 kB / 432.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1093, allocations: 4 kB / 432.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1093, allocations: 3.984 kB / 432.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.1103, allocations: 0.765 MB / 433 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1104, allocations: 8.031 kB / 433.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.1105, allocations: 15.98 kB / 433.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002648/0.1107, allocations: 92.73 kB / 433.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.1107, allocations: 4 kB / 433.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002397/0.1131, allocations: 2.147 MB / 435.3 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.1131, allocations: 7.875 kB / 435.3 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007044/0.1139, allocations: 444.4 kB / 435.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.114, allocations: 132.8 kB / 435.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.114, allocations: 4 kB / 435.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.1142, allocations: 24.11 kB / 435.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.1143, allocations: 31.95 kB / 435.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.1143, allocations: 8 kB / 436 MB, free: 10.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001719/0.1145, allocations: 172.6 kB / 436.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1145, allocations: 3.938 kB / 436.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004519/0.115, allocations: 87.89 kB / 436.2 MB, free: 10.07 MB / 366.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.0001337/0.1151, allocations: 115.2 kB / 436.3 MB, free: 9.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006863/0.1158, allocations: 350.3 kB / 436.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1158, allocations: 0 / 436.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004078/0.1162, allocations: 250.7 kB / 436.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.1166, allocations: 60.78 kB / 437 MB, free: 9.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.1178, allocations: 0.6407 MB / 437.6 MB, free: 8.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.1182, allocations: 0.7597 MB / 438.4 MB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.196e-05/0.1182, allocations: 23.38 kB / 438.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1182, allocations: 0 / 438.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of Templates: time 0.007008/0.1252, allocations: 4.688 MB / 443.1 MB, free: 3.129 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.029081266140565]