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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00132/0.00132, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001086, allocations: 169.5 kB / 24.91 MB, free: 8.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9768/0.9768, allocations: 177 MB / 205.2 MB, free: 5.449 MB / 186.7 MB " [Timeout remaining time 179] 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=5050,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=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.382e-05/2.528e-05, allocations: 6.25 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002843/0.002868, allocations: 2.927 MB / 276.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.004046, allocations: 0.8021 MB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.004159, allocations: 4 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.004291, allocations: 51.44 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.004438, allocations: 111 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.004712, allocations: 123.7 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000285/0.004997, allocations: 426 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.005152, allocations: 98.22 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002571/0.00541, allocations: 235.5 kB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.005567, allocations: 127.6 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.808e-05/0.005605, allocations: 40 kB / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.067e-05/0.005666, allocations: 39.94 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.678e-05/0.005712, allocations: 83.73 kB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.832e-05/0.005801, allocations: 127.7 kB / 278.6 MB, free: 12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.006053, allocations: 271.1 kB / 278.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.006055, allocations: 0 / 278.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.006056, allocations: 0 / 278.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.006061, allocations: 0 / 278.8 MB, free: 11.74 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.0005618/0.006623, allocations: 0.528 MB / 279.3 MB, free: 11.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.006656, allocations: 15.98 kB / 279.4 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.006777, allocations: 52.89 kB / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.006973, allocations: 202 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.006989, allocations: 16.88 kB / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.00702, allocations: 28.38 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002348/0.007255, allocations: 272.2 kB / 279.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-06/0.007263, allocations: 192 / 279.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.00728, allocations: 16.38 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.007286, allocations: 7.938 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.919e-05/0.007385, allocations: 75.39 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007921/0.008177, allocations: 0.7793 MB / 280.8 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.008451, allocations: 130.5 kB / 280.9 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.008609, allocations: 80.8 kB / 281 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.008626, allocations: 7.938 kB / 281 MB, free: 9.414 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001442/0.008771, allocations: 186.1 kB / 281.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.132e-06/0.008772, allocations: 0 / 281.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005693/0.009341, allocations: 297.4 kB / 281.5 MB, free: 8.898 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.009393, allocations: 136.5 kB / 281.6 MB, free: 8.734 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.009509, allocations: 213 kB / 281.8 MB, free: 8.516 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.009527, allocations: 29.7 kB / 281.9 MB, free: 8.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.467e-05/0.009592, allocations: 156.6 kB / 282 MB, free: 8.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.009631, allocations: 79.41 kB / 282.1 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.009684, allocations: 49.67 kB / 282.1 MB, free: 8.188 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/0.009762, allocations: 338.7 kB / 282.5 MB, free: 7.848 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.433e-05/0.009796, allocations: 27.98 kB / 282.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.888e-05/0.009865, allocations: 120.5 kB / 282.6 MB, free: 7.672 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.005e-05/0.009955, allocations: 99.25 kB / 282.7 MB, free: 7.562 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.009957, allocations: 0 / 282.7 MB, free: 7.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001792/0.01014, allocations: 158.3 kB / 282.9 MB, free: 7.398 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.01015, allocations: 4 kB / 282.9 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.01016, allocations: 7.984 kB / 282.9 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.01033, allocations: 64.73 kB / 282.9 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.292e-05/0.0104, allocations: 27.92 kB / 283 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001057/0.01146, allocations: 1.622 MB / 284.6 MB, free: 5.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.162e-05/0.01154, allocations: 27.88 kB / 284.6 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.168e-06/0.01155, allocations: 4 kB / 284.6 MB, free: 5.555 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 8.001e-05/0.01163, allocations: 121.8 kB / 284.7 MB, free: 5.426 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.01166, allocations: 35.94 kB / 284.8 MB, free: 5.391 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.708e-05/0.01169, allocations: 26.28 kB / 284.8 MB, free: 5.363 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.01169, allocations: 4 kB / 284.8 MB, free: 5.359 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.01169, allocations: 0 / 284.8 MB, free: 5.359 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.0117, allocations: 3.984 kB / 284.8 MB, free: 5.355 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/0.01208, allocations: 451.8 kB / 285.2 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.01208, allocations: 3.984 kB / 285.2 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.717e-05/0.01214, allocations: 16 kB / 285.3 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/0.01227, allocations: 69.03 kB / 285.3 MB, free: 4.793 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.01228, allocations: 8.031 kB / 285.3 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009647/0.01324, allocations: 1.633 MB / 287 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01324, allocations: 0 / 287 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.01346, allocations: 278.7 kB / 287.2 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.0135, allocations: 27.78 kB / 287.3 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.01353, allocations: 12 kB / 287.3 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.109e-05/0.01361, allocations: 12 kB / 287.3 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.198e-05/0.01367, allocations: 35.92 kB / 287.3 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.01368, allocations: 4 kB / 287.3 MB, free: 2.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.48e-05/0.01373, allocations: 70.78 kB / 287.4 MB, free: 2.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01373, allocations: 0 / 287.4 MB, free: 2.609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002829/0.01402, allocations: 95.78 kB / 287.5 MB, free: 2.516 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.0001015/0.01412, allocations: 84.45 kB / 287.6 MB, free: 2.426 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003085/0.01443, allocations: 277.8 kB / 287.9 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.01443, allocations: 4 kB / 287.9 MB, free: 2.137 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.0146, allocations: 234.6 kB / 288.1 MB, free: 1.895 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.0148, allocations: 48.53 kB / 288.1 MB, free: 1.848 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008524/0.01565, allocations: 0.5609 MB / 288.7 MB, free: 1.254 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.051e-05/0.01571, allocations: 88.31 kB / 288.8 MB, free: 1.148 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.04e-05/0.01578, allocations: 22.27 kB / 288.8 MB, free: 1.125 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.01589, allocations: 99.34 kB / 288.9 MB, free: 1.027 MB / 266.7 MB Notification: Performance of SimCode: time 1.442e-06/0.01589, allocations: 4 kB / 288.9 MB, free: 1.023 MB / 266.7 MB Notification: Performance of Templates: time 0.006348/0.02224, allocations: 4.847 MB / 293.7 MB, free: 12.28 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6777676180936396]