Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 108.8 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 55.66 kB / 306.4 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1123, allocations: 50.54 MB / 357 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004799/0.1171, allocations: 4.13 MB / 361.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.1191, allocations: 1.048 MB / 362.2 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.1193, allocations: 8 kB / 362.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.1196, allocations: 67.5 kB / 362.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.1199, allocations: 158.7 kB / 362.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004715/0.1204, allocations: 203.8 kB / 362.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006799/0.1211, allocations: 0.8095 MB / 363.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002882/0.1213, allocations: 173.2 kB / 363.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003947/0.1218, allocations: 315 kB / 363.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003654/0.1221, allocations: 362.6 kB / 364.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.408e-05/0.1222, allocations: 80 kB / 364.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.1224, allocations: 92 kB / 364.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.1225, allocations: 159.4 kB / 364.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.1228, allocations: 342.5 kB / 364.9 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007593/0.1235, allocations: 0.845 MB / 365.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1236, allocations: 3.938 kB / 365.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1236, allocations: 0 / 365.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1236, allocations: 0 / 365.7 MB, free: 5.574 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002663/0.1263, allocations: 1.05 MB / 366.8 MB, free: 4.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.1263, allocations: 8.031 kB / 366.8 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000233/0.1266, allocations: 76.17 kB / 366.9 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005/0.1271, allocations: 414 kB / 367.3 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.27e-05/0.1271, allocations: 29.38 kB / 367.3 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.141e-05/0.1272, allocations: 36.38 kB / 367.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.1286, allocations: 0.6071 MB / 367.9 MB, free: 3.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.1286, allocations: 0 / 367.9 MB, free: 3.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.464e-05/0.1287, allocations: 16 kB / 368 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.1287, allocations: 8 kB / 368 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.1305, allocations: 0.6401 MB / 368.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003707/0.1342, allocations: 2.192 MB / 370.8 MB, free: 296 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1991/0.3333, allocations: 0.8502 MB / 371.6 MB, free: 20.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.3347, allocations: 394.5 kB / 372 MB, free: 20.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.753e-05/0.3348, allocations: 12.83 kB / 372 MB, free: 20.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001468/0.3363, allocations: 429.4 kB / 372.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.324e-06/0.3363, allocations: 0.875 kB / 372.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01573/0.352, allocations: 2.386 MB / 374.8 MB, free: 19.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.3521, allocations: 87.41 kB / 374.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005891/0.3527, allocations: 418.7 kB / 375.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.756e-05/0.3528, allocations: 32.98 kB / 375.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.353, allocations: 232.3 kB / 375.6 MB, free: 19.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.3531, allocations: 136.7 kB / 375.7 MB, free: 19.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.3533, allocations: 70.09 kB / 375.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.954e-05/0.3534, allocations: 360.4 kB / 376.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000918/0.3543, allocations: 294.4 kB / 376.4 MB, free: 18.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009146/0.3552, allocations: 337.8 kB / 376.8 MB, free: 18.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001823/0.3571, allocations: 0.5954 MB / 377.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.3571, allocations: 5.062 kB / 377.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004032/0.3611, allocations: 1.002 MB / 378.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.469e-05/0.3612, allocations: 34.38 kB / 378.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3612, allocations: 0 / 378.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/0.3628, allocations: 434.6 kB / 378.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/0.3633, allocations: 98.22 kB / 378.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009575/0.3729, allocations: 3.82 MB / 382.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009185/0.3739, allocations: 98.25 kB / 382.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.985e-05/0.3739, allocations: 12.2 kB / 382.9 MB, free: 15.62 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003752/0.3743, allocations: 173.2 kB / 383 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.3744, allocations: 52.12 kB / 383.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.3746, allocations: 55.72 kB / 383.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.3746, allocations: 10.16 kB / 383.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/0.3746, allocations: 0 / 383.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.3746, allocations: 2.156 kB / 383.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009489/0.3756, allocations: 0.6102 MB / 383.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.3756, allocations: 3.938 kB / 383.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005576/0.3762, allocations: 80.95 kB / 383.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.3775, allocations: 437.6 kB / 384.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/0.3776, allocations: 9.844 kB / 384.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009258/0.3868, allocations: 3.811 MB / 388.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.3869, allocations: 0.875 kB / 388.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006389/0.3933, allocations: 1.5 MB / 389.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004894/0.3938, allocations: 181.6 kB / 389.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.695e-05/0.3939, allocations: 7.109 kB / 389.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006021/0.3945, allocations: 73.88 kB / 389.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.3947, allocations: 47.59 kB / 389.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.3948, allocations: 19.39 kB / 389.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003887/0.3952, allocations: 291.1 kB / 390.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3952, allocations: 3.719 kB / 390.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009057/0.3961, allocations: 179.1 kB / 390.4 MB, free: 11.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002076/0.3963, allocations: 122 kB / 390.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003024/0.3994, allocations: 0.9764 MB / 391.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.3994, allocations: 5.375 kB / 391.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.401, allocations: 0.5863 MB / 392.1 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005639/0.4016, allocations: 85.14 kB / 392.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003424/0.405, allocations: 1.436 MB / 393.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.4054, allocations: 0.8421 MB / 394.4 MB, free: 8.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002631/0.4057, allocations: 44.45 kB / 394.5 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.4058, allocations: 32.69 kB / 394.5 MB, free: 8.215 MB / 302.1 MB Notification: Performance of SimCode: time 1.874e-06/0.4058, allocations: 0 / 394.5 MB, free: 8.215 MB / 302.1 MB Notification: Performance of Templates: time 0.0196/0.4254, allocations: 13.56 MB / 408.1 MB, free: 12.16 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches