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.001255/0.001255, allocations: 114.4 kB / 17.28 MB, free: 6.219 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.001387/0.001387, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.283/1.283, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000991/0.000991, allocations: 48.17 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08343/0.08444, allocations: 49.45 MB / 350.2 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003747/0.08822, allocations: 2.962 MB / 353.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.08929, allocations: 0.7207 MB / 353.9 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.08942, allocations: 4 kB / 353.9 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.08957, allocations: 35.69 kB / 354 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.08975, allocations: 83.31 kB / 354 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.09001, allocations: 87.92 kB / 354.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000361/0.09038, allocations: 414.3 kB / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.09061, allocations: 123.2 kB / 354.7 MB, free: 312 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.09079, allocations: 159.4 kB / 354.8 MB, free: 152 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.09099, allocations: 155.5 kB / 355 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.474e-05/0.09105, allocations: 36 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.221e-05/0.09111, allocations: 40 kB / 355 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.885e-05/0.09118, allocations: 71.77 kB / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.09133, allocations: 191 kB / 355.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.09163, allocations: 335.4 kB / 355.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.09164, allocations: 0 / 355.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09165, allocations: 0 / 355.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.09166, allocations: 0 / 355.6 MB, free: 15.34 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0009252/0.09259, allocations: 0.6207 MB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.09263, allocations: 8.031 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.909e-05/0.0927, allocations: 32.56 kB / 356.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002958/0.09301, allocations: 295.5 kB / 356.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.09303, allocations: 20.94 kB / 356.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.375e-05/0.09308, allocations: 24.38 kB / 356.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.09355, allocations: 284.9 kB / 356.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.09357, allocations: 0 / 356.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.09361, allocations: 11.98 kB / 356.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.09362, allocations: 8 kB / 356.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003785/0.09401, allocations: 206.1 kB / 357.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.09557, allocations: 1.148 MB / 358.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.09604, allocations: 218.6 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002747/0.09632, allocations: 148.7 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.09636, allocations: 4 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003024/0.09667, allocations: 162.7 kB / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.09668, allocations: 0 / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001281/0.09796, allocations: 0.5121 MB / 359.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/0.09805, allocations: 140.5 kB / 359.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.09828, allocations: 245 kB / 359.7 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.09831, allocations: 29.7 kB / 359.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.09842, allocations: 168.5 kB / 359.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.664e-05/0.09848, allocations: 70.98 kB / 359.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.627e-05/0.09858, allocations: 53.64 kB / 360 MB, free: 10.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.09869, allocations: 334.8 kB / 360.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.09884, allocations: 71.97 kB / 360.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.09903, allocations: 125 kB / 360.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.0993, allocations: 163.4 kB / 360.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.09932, allocations: 3.938 kB / 360.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004642/0.09979, allocations: 298 kB / 361 MB, free: 9.645 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.09981, allocations: 4 kB / 361 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.09982, allocations: 3.984 kB / 361 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003015/0.1001, allocations: 88.81 kB / 361.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.1003, allocations: 32.02 kB / 361.1 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002084/0.1024, allocations: 2.154 MB / 363.2 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.1026, allocations: 35.83 kB / 363.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.1026, allocations: 4 kB / 363.3 MB, free: 7.18 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: 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.0001447/0.1028, allocations: 151.5 kB / 363.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.931e-05/0.1028, allocations: 35.64 kB / 363.5 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.501e-05/0.1029, allocations: 30.19 kB / 363.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1029, allocations: 4 kB / 363.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.1029, allocations: 0 / 363.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1029, allocations: 7.984 kB / 363.5 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000865/0.1038, allocations: 0.7646 MB / 364.3 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1038, allocations: 0 / 364.3 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.1039, allocations: 19.98 kB / 364.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002388/0.1041, allocations: 92.83 kB / 364.4 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.1042, allocations: 4 kB / 364.4 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/0.1062, allocations: 2.143 MB / 366.5 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.1062, allocations: 8.031 kB / 366.5 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006167/0.1068, allocations: 459 kB / 367 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.1069, allocations: 116.8 kB / 367.1 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.825e-05/0.107, allocations: 8 kB / 367.1 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.1072, allocations: 20.11 kB / 367.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.421e-05/0.1073, allocations: 31.95 kB / 367.2 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.1073, allocations: 8 kB / 367.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.1075, allocations: 172.5 kB / 367.3 MB, free: 2.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1075, allocations: 4 kB / 367.3 MB, free: 2.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004205/0.1079, allocations: 95.69 kB / 367.4 MB, free: 2.781 MB / 302.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.0001237/0.108, allocations: 115.2 kB / 367.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006193/0.1086, allocations: 362.2 kB / 367.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1087, allocations: 0 / 367.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.109, allocations: 265.7 kB / 368.1 MB, free: 2.023 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.1094, allocations: 62.75 kB / 368.2 MB, free: 1.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.1105, allocations: 0.7282 MB / 368.9 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.1109, allocations: 0.7636 MB / 369.7 MB, free: 420 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.942e-05/0.1109, allocations: 15.44 kB / 369.7 MB, free: 404 kB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1109, allocations: 4 kB / 369.7 MB, free: 400 kB / 302.1 MB Notification: Performance of Templates: time 0.1393/0.2502, allocations: 4.645 MB / 374.4 MB, free: 24.96 MB / 302.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/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) Reference file matches