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.001273/0.001273, allocations: 70.03 kB / 21.24 MB, free: 0.5547 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.001309/0.001309, allocations: 153.6 kB / 24.49 MB, free: 3.852 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.396/1.396, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 179] 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.001563/0.001563, allocations: 46.95 kB / 319.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09262/0.09418, allocations: 52.16 MB / 371.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004619/0.0988, allocations: 2.723 MB / 374.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.1003, allocations: 0.705 MB / 375 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.1005, allocations: 7.938 kB / 375 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001993/0.1007, allocations: 47.5 kB / 375.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002565/0.101, allocations: 99.12 kB / 375.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.1013, allocations: 99.83 kB / 375.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005584/0.1019, allocations: 418.3 kB / 375.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.1021, allocations: 83.69 kB / 375.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002461/0.1023, allocations: 159.4 kB / 375.9 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.1026, allocations: 143.2 kB / 376 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.044e-05/0.1027, allocations: 36 kB / 376.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.168e-05/0.1027, allocations: 36 kB / 376.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.57e-05/0.1028, allocations: 83.73 kB / 376.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.103, allocations: 139.4 kB / 376.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004981/0.1035, allocations: 438.3 kB / 376.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1035, allocations: 0 / 376.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1035, allocations: 0 / 376.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.015e-05/0.1035, allocations: 4 kB / 376.8 MB, free: 2.121 MB / 334.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.001105/0.1046, allocations: 0.5528 MB / 377.3 MB, free: 1.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.1046, allocations: 8.922 kB / 377.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.341e-05/0.1047, allocations: 36.75 kB / 377.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.1051, allocations: 226 kB / 377.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.1052, allocations: 16.88 kB / 377.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.734e-05/0.1052, allocations: 24.38 kB / 377.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005613/0.1058, allocations: 343.3 kB / 378 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1058, allocations: 4 kB / 378 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.1058, allocations: 11.98 kB / 378 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.1058, allocations: 8 kB / 378 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005703/0.1064, allocations: 201.9 kB / 378.2 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.1082, allocations: 0.9896 MB / 379.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005084/0.1087, allocations: 198.6 kB / 379.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.109, allocations: 132.7 kB / 379.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.109, allocations: 0 / 379.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/0.1093, allocations: 218.1 kB / 379.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.1093, allocations: 0 / 379.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00141/0.1108, allocations: 449.1 kB / 380.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.647e-05/0.1108, allocations: 128.5 kB / 380.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.1111, allocations: 237.7 kB / 380.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.1111, allocations: 29.7 kB / 380.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.1113, allocations: 172.6 kB / 380.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1114, allocations: 75.36 kB / 380.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.977e-05/0.1115, allocations: 57.67 kB / 380.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.1117, allocations: 330.8 kB / 381.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.1118, allocations: 71.97 kB / 381.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.1121, allocations: 180.5 kB / 381.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.1124, allocations: 167.3 kB / 381.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1124, allocations: 0 / 381.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005322/0.1129, allocations: 290.2 kB / 381.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1129, allocations: 7.938 kB / 381.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.113, allocations: 0 / 381.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003422/0.1133, allocations: 92.73 kB / 381.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.1134, allocations: 23.98 kB / 382 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.1159, allocations: 2.005 MB / 384 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.1161, allocations: 31.86 kB / 384 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.1161, allocations: 8 kB / 384 MB, free: 10.45 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.0001608/0.1162, allocations: 145.9 kB / 384.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.192e-05/0.1163, allocations: 23.86 kB / 384.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.538e-05/0.1164, allocations: 30.27 kB / 384.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1164, allocations: 7.938 kB / 384.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-06/0.1164, allocations: 0 / 384.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1164, allocations: 0 / 384.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009469/0.1173, allocations: 0.6554 MB / 384.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1173, allocations: 0 / 384.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.1174, allocations: 23.92 kB / 384.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002595/0.1177, allocations: 92.83 kB / 385 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.1177, allocations: 11.98 kB / 385 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002444/0.1202, allocations: 1.989 MB / 387 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1202, allocations: 8 kB / 387 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007267/0.1209, allocations: 445.7 kB / 387.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.121, allocations: 39.86 kB / 387.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.541e-05/0.121, allocations: 8.109 kB / 387.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.1212, allocations: 23.92 kB / 387.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.887e-05/0.1213, allocations: 43.81 kB / 387.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.1214, allocations: 4.094 kB / 387.5 MB, free: 6.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001807/0.1215, allocations: 173.2 kB / 387.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1215, allocations: 4 kB / 387.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004867/0.122, allocations: 95.78 kB / 387.8 MB, free: 6.465 MB / 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.0001412/0.1222, allocations: 109.2 kB / 387.9 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007387/0.1229, allocations: 350.5 kB / 388.3 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1229, allocations: 192 / 388.3 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004502/0.1234, allocations: 262.5 kB / 388.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004033/0.1238, allocations: 48.97 kB / 388.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.125, allocations: 0.5867 MB / 389.1 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001801/0.1251, allocations: 158.8 kB / 389.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.791e-05/0.1252, allocations: 14.3 kB / 389.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.384e-05/0.1253, allocations: 24.48 kB / 389.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1253, allocations: 0 / 389.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of Templates: time 0.009625/0.1349, allocations: 4.548 MB / 393.9 MB, free: 412 kB / 350.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 -s ida -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 4.385052599012852]