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.0009579/0.000958, allocations: 95.14 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 200.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.7 MB / 247.5 MB, free: 9.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002519/0.0002519, allocations: 8 kB / 308.4 MB, free: 0.5859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.09814, allocations: 51.53 MB / 359.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004403/0.1026, allocations: 3.731 MB / 363.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.1047, allocations: 1.044 MB / 364.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003911/0.1051, allocations: 4 kB / 364.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002645/0.1054, allocations: 71.5 kB / 364.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004668/0.1059, allocations: 158.7 kB / 364.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.1065, allocations: 199.8 kB / 365.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009307/0.1074, allocations: 0.7626 MB / 365.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003096/0.1077, allocations: 157.7 kB / 366 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005352/0.1083, allocations: 259 kB / 366.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004873/0.1088, allocations: 310.6 kB / 366.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.1089, allocations: 36 kB / 366.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.109, allocations: 36 kB / 366.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.1092, allocations: 119.4 kB / 366.8 MB, free: 6.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.1095, allocations: 308.1 kB / 367.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000543/0.11, allocations: 0.6427 MB / 367.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.11, allocations: 0 / 367.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.11, allocations: 0 / 367.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.1101, allocations: 0 / 367.7 MB, free: 5.199 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.002643/0.1127, allocations: 1.011 MB / 368.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.1128, allocations: 12.03 kB / 368.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.1131, allocations: 76.17 kB / 368.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005956/0.1137, allocations: 418 kB / 369.2 MB, free: 3.598 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.483e-05/0.1137, allocations: 29.38 kB / 369.3 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.743e-05/0.1138, allocations: 32.38 kB / 369.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.1154, allocations: 0.6539 MB / 369.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1154, allocations: 3.938 kB / 369.9 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.98e-05/0.1155, allocations: 16 kB / 370 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1155, allocations: 12 kB / 370 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002046/0.1175, allocations: 0.7339 MB / 370.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.166/0.2835, allocations: 2.22 MB / 372.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004439/0.288, allocations: 1.031 MB / 374 MB, free: 18.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001252/0.2893, allocations: 449.1 kB / 374.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.038e-05/0.2894, allocations: 8.234 kB / 374.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00134/0.2907, allocations: 480.5 kB / 374.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.405e-06/0.2907, allocations: 0.9062 kB / 374.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01585/0.3066, allocations: 2.81 MB / 377.7 MB, free: 18.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.3067, allocations: 86.3 kB / 377.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005572/0.3072, allocations: 418.9 kB / 378.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.5e-05/0.3073, allocations: 37.92 kB / 378.2 MB, free: 18.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.3075, allocations: 237.5 kB / 378.4 MB, free: 17.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.3076, allocations: 128.6 kB / 378.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.863e-05/0.3077, allocations: 42.7 kB / 378.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.392e-05/0.3078, allocations: 352.1 kB / 379 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/0.3089, allocations: 350.5 kB / 379.3 MB, free: 17.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.31, allocations: 393.9 kB / 379.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001901/0.3119, allocations: 0.6874 MB / 380.4 MB, free: 17.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.3119, allocations: 1.375 kB / 380.4 MB, free: 17.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003946/0.3158, allocations: 1.14 MB / 381.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.073e-05/0.3159, allocations: 38.23 kB / 381.6 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3159, allocations: 0.7969 kB / 381.6 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.3173, allocations: 488.6 kB / 382 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.3179, allocations: 109.2 kB / 382.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008453/0.3263, allocations: 3.703 MB / 385.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007523/0.3271, allocations: 120.9 kB / 386 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.277e-05/0.3272, allocations: 14.19 kB / 386 MB, free: 14.3 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.0002695/0.3275, allocations: 178.4 kB / 386.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.911e-05/0.3276, allocations: 46.8 kB / 386.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.3277, allocations: 61.34 kB / 386.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.3277, allocations: 4.375 kB / 386.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3277, allocations: 0 / 386.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.3278, allocations: 11.45 kB / 386.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007414/0.3285, allocations: 0.6172 MB / 386.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.3285, allocations: 0 / 386.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/0.329, allocations: 97.5 kB / 387 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.3303, allocations: 487 kB / 387.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.488e-05/0.3303, allocations: 14.62 kB / 387.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007901/0.3382, allocations: 3.697 MB / 391.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3383, allocations: 5.125 kB / 391.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00629/0.3446, allocations: 1.723 MB / 392.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002785/0.3449, allocations: 176.8 kB / 393.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.345, allocations: 10.7 kB / 393.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006483/0.3457, allocations: 106 kB / 393.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.3458, allocations: 43.31 kB / 393.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-05/0.3459, allocations: 21.91 kB / 393.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003409/0.3462, allocations: 292.8 kB / 393.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3462, allocations: 0 / 393.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006629/0.3469, allocations: 183.6 kB / 393.7 MB, free: 9.863 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.0001596/0.3471, allocations: 113 kB / 393.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002677/0.3498, allocations: 1.075 MB / 394.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3498, allocations: 0 / 394.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001566/0.3514, allocations: 0.6461 MB / 395.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005228/0.3519, allocations: 88.06 kB / 395.6 MB, free: 8.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.355, allocations: 1.589 MB / 397.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.3553, allocations: 0.8426 MB / 398.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.3555, allocations: 31.42 kB / 398.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3555, allocations: 0 / 398.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of Templates: time 0.0123/0.3678, allocations: 9.9 MB / 408 MB, free: 12.72 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/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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches