Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007855/0.0007854, allocations: 95.8 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009216/0.0009217, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.7 MB / 247.5 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002166/0.0002166, allocations: 8 kB / 308.4 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09032/0.09055, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003194/0.09379, allocations: 2.61 MB / 362.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.09532, allocations: 0.7791 MB / 363.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002539/0.0956, allocations: 4 kB / 363.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.09579, allocations: 35.7 kB / 363.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.09605, allocations: 91.3 kB / 363.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.09641, allocations: 103.8 kB / 363.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005731/0.09701, allocations: 390.2 kB / 363.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002811/0.0973, allocations: 111.9 kB / 364 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003439/0.09766, allocations: 123.5 kB / 364.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.09798, allocations: 143.2 kB / 364.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.577e-05/0.09805, allocations: 16 kB / 364.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.09818, allocations: 20 kB / 364.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.978e-05/0.09825, allocations: 51.77 kB / 364.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002106/0.09847, allocations: 180.9 kB / 364.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.0988, allocations: 319.3 kB / 364.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.09881, allocations: 3.938 kB / 364.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09882, allocations: 0 / 364.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.09884, allocations: 0 / 364.9 MB, free: 8.32 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.0009895/0.09983, allocations: 0.5779 MB / 365.4 MB, free: 7.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.09988, allocations: 8.031 kB / 365.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.1001, allocations: 52.45 kB / 365.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.1004, allocations: 280.8 kB / 365.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.1005, allocations: 16.94 kB / 365.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.1005, allocations: 28.38 kB / 365.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.101, allocations: 296.8 kB / 366.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.101, allocations: 0 / 366.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.883e-05/0.1011, allocations: 8 kB / 366.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.1011, allocations: 4 kB / 366.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004131/0.1015, allocations: 214.1 kB / 366.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.1032, allocations: 1.168 MB / 367.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/0.1037, allocations: 218.6 kB / 367.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002906/0.104, allocations: 148.8 kB / 367.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.104, allocations: 4 kB / 367.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002944/0.1043, allocations: 178.6 kB / 368 MB, free: 4.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.1043, allocations: 0 / 368 MB, free: 4.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001372/0.1057, allocations: 0.5257 MB / 368.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.1058, allocations: 132.5 kB / 368.7 MB, free: 4.215 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002503/0.106, allocations: 241 kB / 368.9 MB, free: 3.969 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.1061, allocations: 29.7 kB / 369 MB, free: 3.934 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.1062, allocations: 176.4 kB / 369.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.249e-05/0.1063, allocations: 74.98 kB / 369.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/0.1063, allocations: 29.7 kB / 369.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1065, allocations: 330.8 kB / 369.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.1066, allocations: 71.98 kB / 369.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.1068, allocations: 129.1 kB / 369.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/0.1071, allocations: 181 kB / 369.9 MB, free: 2.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1071, allocations: 0 / 369.9 MB, free: 2.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005031/0.1077, allocations: 298 kB / 370.2 MB, free: 2.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1077, allocations: 11.94 kB / 370.2 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1077, allocations: 0 / 370.2 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.108, allocations: 92.73 kB / 370.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.1082, allocations: 27.98 kB / 370.3 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.1102, allocations: 1.94 MB / 372.3 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002312/0.1105, allocations: 35.77 kB / 372.3 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.1105, allocations: 4 kB / 372.3 MB, free: 376 kB / 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.0001491/0.1107, allocations: 145.9 kB / 372.5 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/0.1107, allocations: 23.72 kB / 372.5 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.328e-05/0.1108, allocations: 34.17 kB / 372.5 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1108, allocations: 3.938 kB / 372.5 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.1108, allocations: 4 kB / 372.5 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1108, allocations: 3.984 kB / 372.5 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1571/0.2679, allocations: 0.7659 MB / 373.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.2679, allocations: 5.188 kB / 373.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.268, allocations: 23.64 kB / 373.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002868/0.2683, allocations: 91.42 kB / 373.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.2684, allocations: 5.688 kB / 373.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001827/0.2702, allocations: 1.941 MB / 375.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2702, allocations: 3.688 kB / 375.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007409/0.271, allocations: 459.6 kB / 375.8 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.2711, allocations: 124.8 kB / 375.9 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.658e-05/0.2711, allocations: 10.36 kB / 376 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.2714, allocations: 21.47 kB / 376 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.2715, allocations: 32.11 kB / 376 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.2715, allocations: 9.906 kB / 376 MB, free: 17.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.2717, allocations: 180 kB / 376.2 MB, free: 17.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2717, allocations: 0 / 376.2 MB, free: 17.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000477/0.2722, allocations: 88.77 kB / 376.3 MB, free: 17.31 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.0001187/0.2723, allocations: 107.2 kB / 376.4 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006382/0.273, allocations: 362.6 kB / 376.7 MB, free: 17.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.273, allocations: 0 / 376.7 MB, free: 17.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.2734, allocations: 267.4 kB / 377 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.2738, allocations: 49.67 kB / 377 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.275, allocations: 0.7778 MB / 377.8 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.2752, allocations: 0.7653 MB / 378.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.589e-05/0.2753, allocations: 19.59 kB / 378.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2753, allocations: 5.375 kB / 378.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Templates: time 0.008125/0.2834, allocations: 4.653 MB / 383.3 MB, free: 15.5 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches