Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 107.5 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.00147, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.218/2.218, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 42.2 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1754, allocations: 49.46 MB / 350.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.008941/0.1844, allocations: 4.079 MB / 354.1 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.1878, allocations: 1.005 MB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008387/0.1887, allocations: 8 kB / 355.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005154/0.1892, allocations: 63.45 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008776/0.1902, allocations: 154.8 kB / 355.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000801/0.191, allocations: 195.8 kB / 355.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001231/0.1923, allocations: 0.7471 MB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004355/0.1927, allocations: 149.7 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006434/0.1934, allocations: 267 kB / 356.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006212/0.194, allocations: 330.5 kB / 357 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.1942, allocations: 40 kB / 357.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.1943, allocations: 44 kB / 357.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001892/0.1946, allocations: 119.5 kB / 357.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004647/0.195, allocations: 290.5 kB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.1962, allocations: 0.6429 MB / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.1962, allocations: 0 / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1962, allocations: 0 / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.1962, allocations: 0 / 358.2 MB, free: 12.72 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.004809/0.2011, allocations: 1.022 MB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.397e-05/0.2012, allocations: 8.031 kB / 359.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.2014, allocations: 60.27 kB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009206/0.2023, allocations: 409.9 kB / 359.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.083e-05/0.2024, allocations: 29.38 kB / 359.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.2026, allocations: 40.31 kB / 359.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002739/0.2053, allocations: 0.5954 MB / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.2054, allocations: 0 / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-05/0.2055, allocations: 19.98 kB / 360.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.2055, allocations: 12 kB / 360.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002915/0.2084, allocations: 0.6205 MB / 361 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006416/0.2149, allocations: 2.172 MB / 363.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005965/0.2209, allocations: 0.8315 MB / 364 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/0.2231, allocations: 404.3 kB / 364.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.933e-05/0.2232, allocations: 8.312 kB / 364.4 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002177/0.2254, allocations: 422.3 kB / 364.8 MB, free: 5.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 9.698e-06/0.2254, allocations: 3.984 kB / 364.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.02619/0.2516, allocations: 2.289 MB / 367.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.2518, allocations: 81.11 kB / 367.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.2529, allocations: 409.9 kB / 367.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001838/0.2531, allocations: 37.7 kB / 367.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003331/0.2534, allocations: 236.6 kB / 367.8 MB, free: 2.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002756/0.2537, allocations: 134.1 kB / 368 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003296/0.2541, allocations: 74.06 kB / 368 MB, free: 2.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002331/0.2543, allocations: 350.7 kB / 368.4 MB, free: 2.172 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/0.2562, allocations: 292.6 kB / 368.7 MB, free: 1.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.2581, allocations: 334.1 kB / 369 MB, free: 1.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003469/0.2616, allocations: 0.5757 MB / 369.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.2616, allocations: 0 / 369.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.3037/0.5653, allocations: 0.9732 MB / 370.5 MB, free: 25.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.359e-05/0.5655, allocations: 36.75 kB / 370.6 MB, free: 25.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.5655, allocations: 0 / 370.6 MB, free: 25.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002284/0.5678, allocations: 394.3 kB / 370.9 MB, free: 25.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008731/0.5687, allocations: 86.19 kB / 371 MB, free: 25.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01207/0.5808, allocations: 3.308 MB / 374.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.582, allocations: 89.78 kB / 374.4 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-05/0.5821, allocations: 15.48 kB / 374.4 MB, free: 24.2 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.0003729/0.5825, allocations: 174.5 kB / 374.6 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.5826, allocations: 47 kB / 374.7 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001737/0.5828, allocations: 52.19 kB / 374.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.5828, allocations: 4.406 kB / 374.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5828, allocations: 0 / 374.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.5829, allocations: 7.844 kB / 374.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.5839, allocations: 0.6128 MB / 375.3 MB, free: 23.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.584, allocations: 7.469 kB / 375.3 MB, free: 23.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007015/0.5847, allocations: 79.84 kB / 375.4 MB, free: 23.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001677/0.5864, allocations: 398.7 kB / 375.8 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-05/0.5865, allocations: 9.422 kB / 375.8 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01078/0.5972, allocations: 3.311 MB / 379.1 MB, free: 21.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.5973, allocations: 0.5625 kB / 379.1 MB, free: 21.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008146/0.6055, allocations: 1.457 MB / 380.6 MB, free: 20.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003395/0.6058, allocations: 181 kB / 380.8 MB, free: 20.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.606, allocations: 15.08 kB / 380.8 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006741/0.6067, allocations: 70.67 kB / 380.8 MB, free: 20.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.6069, allocations: 46.41 kB / 380.9 MB, free: 20.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/0.607, allocations: 15.69 kB / 380.9 MB, free: 20.74 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000446/0.6074, allocations: 294.3 kB / 381.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6074, allocations: 1.406 kB / 381.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008487/0.6083, allocations: 172.7 kB / 381.4 MB, free: 20.57 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.0001757/0.6085, allocations: 106.2 kB / 381.5 MB, free: 20.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002932/0.6114, allocations: 0.9236 MB / 382.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.6114, allocations: 1.688 kB / 382.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001681/0.6131, allocations: 0.5515 MB / 382.9 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006081/0.6137, allocations: 80.16 kB / 383 MB, free: 19.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.6173, allocations: 1.396 MB / 384.4 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.6177, allocations: 0.8336 MB / 385.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.6179, allocations: 33.33 kB / 385.3 MB, free: 18.22 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.6179, allocations: 0 / 385.3 MB, free: 18.22 MB / 302.1 MB Notification: Performance of Templates: time 0.01707/0.635, allocations: 9.856 MB / 395.1 MB, free: 13.41 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches