Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001296/0.001296, allocations: 119.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 202.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.416/1.416, allocations: 227.7 MB / 247.9 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 71.89 kB / 359.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2369, allocations: 50.54 MB / 410.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005302/0.2422, allocations: 4.104 MB / 414.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.2443, allocations: 1.071 MB / 415.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002496/0.2446, allocations: 4 kB / 415.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002567/0.2448, allocations: 87.14 kB / 415.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003607/0.2452, allocations: 190.4 kB / 415.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005478/0.2457, allocations: 231.6 kB / 415.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008405/0.2466, allocations: 0.8134 MB / 416.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002433/0.2468, allocations: 120.9 kB / 416.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005219/0.2473, allocations: 318.9 kB / 417.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004234/0.2478, allocations: 358.6 kB / 417.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.2479, allocations: 80 kB / 417.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.248, allocations: 96 kB / 417.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000152/0.2482, allocations: 163.4 kB / 417.8 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003235/0.2485, allocations: 330.5 kB / 418.1 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009121/0.2494, allocations: 0.8641 MB / 419 MB, free: 8.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2494, allocations: 0 / 419 MB, free: 8.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2494, allocations: 0 / 419 MB, free: 8.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.2494, allocations: 0 / 419 MB, free: 8.719 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.002687/0.2521, allocations: 1.053 MB / 420.1 MB, free: 7.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2521, allocations: 15.97 kB / 420.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002331/0.2524, allocations: 76.48 kB / 420.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006559/0.253, allocations: 430.2 kB / 420.6 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.2531, allocations: 25.38 kB / 420.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.622e-05/0.2532, allocations: 40.38 kB / 420.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.2546, allocations: 0.6031 MB / 421.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.2546, allocations: 4 kB / 421.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-05/0.2547, allocations: 19.98 kB / 421.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.2547, allocations: 8 kB / 421.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.2567, allocations: 0.644 MB / 421.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003891/0.2606, allocations: 2.169 MB / 424.1 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003848/0.2644, allocations: 0.825 MB / 424.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.2655, allocations: 369.3 kB / 425.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.798e-05/0.2655, allocations: 12.31 kB / 425.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/0.2667, allocations: 430.7 kB / 425.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.374e-06/0.2667, allocations: 3.938 kB / 425.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01436/0.281, allocations: 2.379 MB / 428.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.2811, allocations: 89.09 kB / 428.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005762/0.2817, allocations: 413.9 kB / 428.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.963e-05/0.2818, allocations: 33.7 kB / 428.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.282, allocations: 236.9 kB / 428.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.2821, allocations: 142.8 kB / 429 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.2823, allocations: 74.06 kB / 429.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.2825, allocations: 358.7 kB / 429.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009832/0.2835, allocations: 296.6 kB / 429.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009876/0.2844, allocations: 338.1 kB / 430 MB, free: 13.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00188/0.2863, allocations: 0.5951 MB / 430.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2863, allocations: 0 / 430.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003744/0.2901, allocations: 1.002 MB / 431.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.2901, allocations: 29.7 kB / 431.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.2901, allocations: 4 kB / 431.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/0.2915, allocations: 431.9 kB / 432.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/0.292, allocations: 99.84 kB / 432.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008975/0.301, allocations: 3.805 MB / 436 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007261/0.3017, allocations: 103.7 kB / 436.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.345e-05/0.3017, allocations: 15.98 kB / 436.1 MB, free: 7.121 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.000279/0.302, allocations: 177.7 kB / 436.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/0.3021, allocations: 51.67 kB / 436.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001396/0.3022, allocations: 60.52 kB / 436.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.3023, allocations: 8 kB / 436.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3023, allocations: 0 / 436.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3023, allocations: 0 / 436.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007702/0.303, allocations: 0.6221 MB / 437 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.303, allocations: 3.938 kB / 437 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000497/0.3035, allocations: 83.92 kB / 437.1 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.3048, allocations: 439.3 kB / 437.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.492e-05/0.3048, allocations: 8 kB / 437.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0088/0.3136, allocations: 3.799 MB / 441.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/0.3136, allocations: 3.938 kB / 441.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006035/0.3197, allocations: 1.497 MB / 442.8 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004002/0.3201, allocations: 176.8 kB / 443 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.449e-05/0.3201, allocations: 15.94 kB / 443 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005684/0.3207, allocations: 75.91 kB / 443.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.3209, allocations: 43.94 kB / 443.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.945e-05/0.3209, allocations: 15.92 kB / 443.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004227/0.3213, allocations: 295.2 kB / 443.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3213, allocations: 0 / 443.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007309/0.3221, allocations: 179.8 kB / 443.6 MB, free: 15.35 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.000246/0.3223, allocations: 119.2 kB / 443.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002885/0.3252, allocations: 0.9387 MB / 444.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3252, allocations: 0 / 444.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.3268, allocations: 0.5762 MB / 445.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.3274, allocations: 92.72 kB / 445.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.3308, allocations: 1.275 MB / 446.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005289/0.3313, allocations: 0.8394 MB / 447.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002312/0.3316, allocations: 47.39 kB / 447.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.3317, allocations: 39.36 kB / 447.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3317, allocations: 0 / 447.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of Templates: time 0.02333/0.355, allocations: 14.1 MB / 461.6 MB, free: 13.31 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches