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.001318/0.001318, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.00138, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.595/1.595, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5202/0.5214, allocations: 50.54 MB / 409.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.009391/0.5309, allocations: 4.104 MB / 413.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00359/0.5346, allocations: 1.063 MB / 414.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005564/0.5352, allocations: 8 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004034/0.5357, allocations: 87.14 kB / 414.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006632/0.5363, allocations: 178.4 kB / 414.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009811/0.5373, allocations: 227.7 kB / 414.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001229/0.5386, allocations: 0.8251 MB / 415.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000463/0.5391, allocations: 164.9 kB / 415.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007463/0.5398, allocations: 322.9 kB / 416.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006348/0.5405, allocations: 362.6 kB / 416.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.5406, allocations: 80 kB / 416.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002488/0.5409, allocations: 88 kB / 416.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.5411, allocations: 167.4 kB / 416.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004301/0.5416, allocations: 334.5 kB / 417.2 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.5428, allocations: 0.8578 MB / 418.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.5428, allocations: 4 kB / 418.1 MB, free: 8.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.5428, allocations: 0 / 418.1 MB, free: 8.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.5428, allocations: 0 / 418.1 MB, free: 8.727 MB / 334.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.003847/0.5467, allocations: 1.034 MB / 419.1 MB, free: 7.633 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.5467, allocations: 11.97 kB / 419.1 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003576/0.5471, allocations: 68.27 kB / 419.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.5481, allocations: 429.7 kB / 419.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.792e-05/0.5482, allocations: 29.38 kB / 419.6 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.5484, allocations: 40.36 kB / 419.7 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/0.5505, allocations: 0.6071 MB / 420.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.5506, allocations: 7.938 kB / 420.3 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-05/0.5507, allocations: 12 kB / 420.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.5507, allocations: 8 kB / 420.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002793/0.5535, allocations: 0.644 MB / 421 MB, free: 5.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005813/0.5593, allocations: 2.161 MB / 423.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00478/0.5641, allocations: 0.862 MB / 424 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001298/0.5655, allocations: 400.7 kB / 424.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.852e-05/0.5656, allocations: 8.312 kB / 424.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001433/0.567, allocations: 430.7 kB / 424.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 3.056e-06/0.567, allocations: 0 / 424.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0192/0.5862, allocations: 2.394 MB / 427.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.5864, allocations: 81.11 kB / 427.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009536/0.5874, allocations: 421.8 kB / 427.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001421/0.5876, allocations: 37.69 kB / 427.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003097/0.5879, allocations: 228.7 kB / 427.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.5882, allocations: 138 kB / 428.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.5885, allocations: 74.06 kB / 428.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002561/0.5888, allocations: 358.7 kB / 428.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.59, allocations: 296.6 kB / 428.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.5913, allocations: 338.1 kB / 429.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002382/0.5937, allocations: 0.5952 MB / 429.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.5938, allocations: 0 / 429.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005004/0.5988, allocations: 1.002 MB / 430.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.331e-05/0.5989, allocations: 33.7 kB / 430.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.5989, allocations: 0 / 430.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001895/0.6008, allocations: 432.5 kB / 431.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006523/0.6015, allocations: 91.84 kB / 431.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01238/0.6139, allocations: 3.817 MB / 435.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.6151, allocations: 91.66 kB / 435.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/0.6153, allocations: 12 kB / 435.2 MB, free: 7.113 MB / 350.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.0006271/0.6159, allocations: 185.7 kB / 435.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.6162, allocations: 47.44 kB / 435.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000222/0.6164, allocations: 60.52 kB / 435.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.6164, allocations: 8 kB / 435.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.6165, allocations: 0 / 435.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.6165, allocations: 0 / 435.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.6177, allocations: 0.6182 MB / 436.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.6177, allocations: 0 / 436.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006354/0.6184, allocations: 79.86 kB / 436.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001655/0.62, allocations: 440.5 kB / 436.6 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.445e-05/0.6201, allocations: 12 kB / 436.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/0.632, allocations: 3.799 MB / 440.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.6321, allocations: 4 kB / 440.4 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008021/0.6401, allocations: 1.505 MB / 441.9 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006313/0.6408, allocations: 180.5 kB / 442.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002451/0.6411, allocations: 11.94 kB / 442.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009324/0.642, allocations: 75.91 kB / 442.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003328/0.6424, allocations: 51.88 kB / 442.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.949e-05/0.6425, allocations: 15.98 kB / 442.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007076/0.6432, allocations: 291.2 kB / 442.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6432, allocations: 0 / 442.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001294/0.6445, allocations: 175.8 kB / 442.7 MB, free: 15.34 MB / 366.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.0003411/0.6449, allocations: 107.2 kB / 442.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003262/0.6482, allocations: 0.9737 MB / 443.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.6482, allocations: 4 kB / 443.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.65, allocations: 0.588 MB / 444.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008001/0.6508, allocations: 93.62 kB / 444.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004382/0.6552, allocations: 1.253 MB / 445.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007309/0.656, allocations: 0.8433 MB / 446.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002978/0.6563, allocations: 47.38 kB / 446.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.6564, allocations: 35.44 kB / 446.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6564, allocations: 0 / 446.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of Templates: time 0.03107/0.6875, allocations: 14.05 MB / 460.7 MB, free: 13.33 MB / 382.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