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.001509/0.001509, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001198/0.001198, allocations: 157 kB / 24.99 MB, free: 8.801 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.9817/0.9817, allocations: 177 MB / 205.2 MB, free: 5.609 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.613e-06/1.613e-06, allocations: 0 / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.494e-05/2.655e-05, allocations: 2.312 kB / 273 MB, free: 1.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003129/0.003155, allocations: 2.951 MB / 276 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.004262, allocations: 0.7828 MB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.004413, allocations: 11.94 kB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.004564, allocations: 51.5 kB / 276.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.004716, allocations: 103 kB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.005038, allocations: 119.7 kB / 277 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.005359, allocations: 430.1 kB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.005543, allocations: 91.59 kB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.005827, allocations: 243.4 kB / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.005986, allocations: 127.7 kB / 277.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.006024, allocations: 36 kB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.617e-05/0.00609, allocations: 40 kB / 278 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.283e-05/0.006143, allocations: 75.69 kB / 278 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.006249, allocations: 123.7 kB / 278.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003266/0.006575, allocations: 279 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.006578, allocations: 0 / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.006579, allocations: 3.938 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.006586, allocations: 0 / 278.4 MB, free: 12.29 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.000733/0.007319, allocations: 0.6449 MB / 279.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.007371, allocations: 15.98 kB / 279.1 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/0.007532, allocations: 64.69 kB / 279.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.007791, allocations: 236.9 kB / 279.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.007813, allocations: 16.88 kB / 279.4 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.663e-05/0.007849, allocations: 28.38 kB / 279.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003292/0.008178, allocations: 296.7 kB / 279.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.00819, allocations: 192 / 279.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.662e-05/0.008217, allocations: 12.38 kB / 279.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.008227, allocations: 11.94 kB / 279.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.008406, allocations: 106.9 kB / 279.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.009566, allocations: 1.092 MB / 280.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.009883, allocations: 158.8 kB / 281.1 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.01007, allocations: 99.58 kB / 281.2 MB, free: 9.355 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.01009, allocations: 7.984 kB / 281.2 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.01027, allocations: 199.1 kB / 281.4 MB, free: 9.109 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.202e-06/0.01027, allocations: 0 / 281.4 MB, free: 9.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007985/0.01107, allocations: 356.2 kB / 281.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.01113, allocations: 140.5 kB / 281.9 MB, free: 8.586 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.0113, allocations: 280.2 kB / 282.2 MB, free: 8.297 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.01132, allocations: 29.7 kB / 282.2 MB, free: 8.262 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.01142, allocations: 219.4 kB / 282.4 MB, free: 8.039 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.278e-05/0.01151, allocations: 71.38 kB / 282.5 MB, free: 7.969 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-05/0.01158, allocations: 63.33 kB / 282.5 MB, free: 7.898 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.01169, allocations: 0.504 MB / 283 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.467e-05/0.01175, allocations: 35.98 kB / 283.1 MB, free: 7.348 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.01186, allocations: 153.4 kB / 283.2 MB, free: 7.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.012, allocations: 118.7 kB / 283.3 MB, free: 7.027 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.012, allocations: 0 / 283.3 MB, free: 7.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002603/0.01226, allocations: 217 kB / 283.5 MB, free: 6.805 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.01228, allocations: 11.25 kB / 283.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.01228, allocations: 0 / 283.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000245/0.01253, allocations: 71.58 kB / 283.6 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.451e-05/0.01261, allocations: 27.92 kB / 283.7 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.01412, allocations: 2.364 MB / 286 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.207e-05/0.01421, allocations: 35.77 kB / 286.1 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.01422, allocations: 8 kB / 286.1 MB, free: 4.172 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 0.0001021/0.01433, allocations: 172.5 kB / 286.2 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.642e-05/0.01436, allocations: 27.86 kB / 286.3 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.319e-05/0.0144, allocations: 30.27 kB / 286.3 MB, free: 3.934 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.0144, allocations: 8.031 kB / 286.3 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.0144, allocations: 0 / 286.3 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.01441, allocations: 7.922 kB / 286.3 MB, free: 3.918 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000562/0.01497, allocations: 0.6758 MB / 287 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.01497, allocations: 0 / 287 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.145e-05/0.01506, allocations: 20 kB / 287 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001509/0.01521, allocations: 63.62 kB / 287.1 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.01523, allocations: 8 kB / 287.1 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001455/0.01668, allocations: 2.368 MB / 289.4 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01668, allocations: 0 / 289.4 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003243/0.01701, allocations: 388.5 kB / 289.8 MB, free: 204 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.356e-05/0.01707, allocations: 59.81 kB / 289.9 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.01709, allocations: 4 kB / 289.9 MB, free: 140 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.122e-05/0.01718, allocations: 19.98 kB / 289.9 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.547e-05/0.01726, allocations: 31.94 kB / 289.9 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.01728, allocations: 7.938 kB / 289.9 MB, free: 80 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001064/0.01738, allocations: 197.1 kB / 290.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01738, allocations: 0 / 290.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.01767, allocations: 95.84 kB / 290.2 MB, free: 15.79 MB / 282.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.0001088/0.01778, allocations: 107.2 kB / 290.3 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004189/0.0182, allocations: 348.1 kB / 290.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.0182, allocations: 0 / 290.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002401/0.01844, allocations: 304.5 kB / 291 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.01871, allocations: 69.7 kB / 291 MB, free: 14.94 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.01973, allocations: 0.5495 MB / 291.6 MB, free: 14.35 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.689e-05/0.01979, allocations: 88.31 kB / 291.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.677e-05/0.01984, allocations: 14.3 kB / 291.7 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.888e-05/0.01988, allocations: 20.5 kB / 291.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01988, allocations: 0 / 291.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of Templates: time 0.007187/0.02707, allocations: 4.63 MB / 296.3 MB, free: 9.664 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: 3.014025925891474]