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.001163/0.001163, allocations: 98.7 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002377/0.0002378, allocations: 4 kB / 306.6 MB, free: 1.629 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1259, allocations: 51.49 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003572/0.1296, allocations: 3.293 MB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.1311, allocations: 1.033 MB / 362.4 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.1313, allocations: 8 kB / 362.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.623e-05/0.1314, allocations: 59.5 kB / 362.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003691/0.1318, allocations: 207.4 kB / 362.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.1322, allocations: 143.7 kB / 362.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005314/0.1327, allocations: 0.4912 MB / 363.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002697/0.133, allocations: 139.8 kB / 363.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.1333, allocations: 259.1 kB / 363.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003405/0.1337, allocations: 294.9 kB / 364 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.908e-05/0.1338, allocations: 36 kB / 364 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.1339, allocations: 36 kB / 364 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.134, allocations: 111.5 kB / 364.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.1341, allocations: 125.5 kB / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000514/0.1347, allocations: 0.6273 MB / 364.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1347, allocations: 0 / 364.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1347, allocations: 0 / 364.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1347, allocations: 4 kB / 364.9 MB, free: 7.262 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.002374/0.1371, allocations: 0.9953 MB / 365.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1371, allocations: 8.031 kB / 365.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000227/0.1373, allocations: 67.33 kB / 366 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.1379, allocations: 404.9 kB / 366.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.69e-05/0.1379, allocations: 32.95 kB / 366.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.661e-05/0.138, allocations: 43.91 kB / 366.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.1394, allocations: 0.6302 MB / 367.1 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1394, allocations: 3.938 kB / 367.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.235e-05/0.1395, allocations: 19.94 kB / 367.1 MB, free: 4.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1395, allocations: 12 kB / 367.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001876/0.1414, allocations: 0.6987 MB / 367.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003795/0.1452, allocations: 2.196 MB / 370 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003844/0.1491, allocations: 1.002 MB / 371 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.815e-05/0.1491, allocations: 8.266 kB / 371 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.1503, allocations: 471.2 kB / 371.5 MB, free: 464 kB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.304e-06/0.1504, allocations: 0 / 371.5 MB, free: 464 kB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.2506/0.4009, allocations: 2.623 MB / 374.1 MB, free: 19.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.4011, allocations: 88.67 kB / 374.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009566/0.4021, allocations: 406.6 kB / 374.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001551/0.4023, allocations: 31.67 kB / 374.6 MB, free: 19.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.4025, allocations: 228.8 kB / 374.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.4027, allocations: 139.1 kB / 375 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.641e-05/0.4028, allocations: 7.656 kB / 375 MB, free: 19.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4029, allocations: 355.5 kB / 375.3 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.404, allocations: 333.4 kB / 375.7 MB, free: 19.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.4051, allocations: 375.3 kB / 376 MB, free: 18.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.4063, allocations: 350.2 kB / 376.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.4063, allocations: 0 / 376.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003159/0.4094, allocations: 0.9731 MB / 377.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.404e-05/0.4095, allocations: 32.97 kB / 377.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.4095, allocations: 2.516 kB / 377.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/0.4109, allocations: 425.3 kB / 377.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005565/0.4115, allocations: 106.2 kB / 377.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008763/0.4203, allocations: 3.624 MB / 381.5 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007957/0.4211, allocations: 119.7 kB / 381.6 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.877e-05/0.4212, allocations: 11.83 kB / 381.6 MB, free: 16.4 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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002885/0.4214, allocations: 169.2 kB / 381.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.512e-05/0.4215, allocations: 47.27 kB / 381.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.4217, allocations: 60.25 kB / 381.9 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/0.4217, allocations: 5.156 kB / 381.9 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.4217, allocations: 8.453 kB / 381.9 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.4217, allocations: 2.109 kB / 381.9 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008009/0.4225, allocations: 0.6069 MB / 382.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.371e-06/0.4225, allocations: 1.734 kB / 382.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004949/0.423, allocations: 94 kB / 382.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.4243, allocations: 425.3 kB / 383 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.4244, allocations: 11.67 kB / 383.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007711/0.4321, allocations: 3.622 MB / 386.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.4321, allocations: 1.688 kB / 386.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005637/0.4377, allocations: 1.665 MB / 388.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/0.438, allocations: 177.2 kB / 388.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.337e-05/0.4381, allocations: 13.61 kB / 388.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005696/0.4387, allocations: 88.66 kB / 388.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.4389, allocations: 52.12 kB / 388.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.185e-05/0.4389, allocations: 14.88 kB / 388.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000314/0.4392, allocations: 291.3 kB / 389 MB, free: 12.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4392, allocations: 0 / 389 MB, free: 12.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007003/0.4399, allocations: 175.2 kB / 389.1 MB, free: 12.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001632/0.4401, allocations: 106.7 kB / 389.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002625/0.4427, allocations: 1.008 MB / 390.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4428, allocations: 1.531 kB / 390.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.4442, allocations: 0.5936 MB / 390.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.4446, allocations: 79.02 kB / 390.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.4474, allocations: 1.416 MB / 392.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.4477, allocations: 0.852 MB / 393.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002324/0.448, allocations: 43.14 kB / 393.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.4481, allocations: 35.98 kB / 393.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4481, allocations: 0 / 393.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of Templates: time 0.01492/0.463, allocations: 12.34 MB / 405.6 MB, free: 15.13 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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches