Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008026/0.0008025, allocations: 93.92 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002896, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2446, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.002723/0.2473, allocations: 3.498 MB / 411 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.2486, allocations: 1.014 MB / 412 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.2488, allocations: 4 kB / 412 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.249, allocations: 63.52 kB / 412.1 MB, free: 23.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.2492, allocations: 153.8 kB / 412.2 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003152/0.2495, allocations: 142.4 kB / 412.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004172/0.25, allocations: 0.7042 MB / 413.1 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.2502, allocations: 143.8 kB / 413.2 MB, free: 22.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.2505, allocations: 251.1 kB / 413.5 MB, free: 21.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.2507, allocations: 302.7 kB / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.195e-05/0.2508, allocations: 36 kB / 413.8 MB, free: 21.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.2509, allocations: 36 kB / 413.8 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.624e-05/0.251, allocations: 111.5 kB / 413.9 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.348e-05/0.2511, allocations: 129.4 kB / 414.1 MB, free: 21.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003605/0.2515, allocations: 0.6242 MB / 414.7 MB, free: 20.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2515, allocations: 0 / 414.7 MB, free: 20.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2515, allocations: 0 / 414.7 MB, free: 20.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2515, allocations: 0 / 414.7 MB, free: 20.62 MB / 298.7 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.002202/0.2537, allocations: 1.003 MB / 415.7 MB, free: 19.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.2537, allocations: 8.031 kB / 415.7 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.2539, allocations: 75.33 kB / 415.8 MB, free: 19.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003873/0.2543, allocations: 393 kB / 416.1 MB, free: 19.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.2544, allocations: 36.89 kB / 416.2 MB, free: 19.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.092e-05/0.2544, allocations: 36 kB / 416.2 MB, free: 18.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.2557, allocations: 0.6302 MB / 416.9 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.2557, allocations: 4 kB / 416.9 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.645e-05/0.2557, allocations: 15.94 kB / 416.9 MB, free: 18.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.2558, allocations: 12 kB / 416.9 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.2574, allocations: 0.7026 MB / 417.6 MB, free: 17.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003/0.2605, allocations: 2.207 MB / 419.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003696/0.2642, allocations: 0.9922 MB / 420.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009561/0.2651, allocations: 432.5 kB / 421.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-05/0.2652, allocations: 12.31 kB / 421.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001049/0.2663, allocations: 462.7 kB / 421.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.585e-06/0.2663, allocations: 4 kB / 421.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.01336/0.2796, allocations: 2.637 MB / 424.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.2797, allocations: 89.05 kB / 424.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004303/0.2802, allocations: 402 kB / 424.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.26e-05/0.2802, allocations: 33.7 kB / 424.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.2804, allocations: 228.6 kB / 425 MB, free: 9.934 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.2805, allocations: 134.1 kB / 425.2 MB, free: 9.801 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.2805, allocations: 8 kB / 425.2 MB, free: 9.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.311e-05/0.2806, allocations: 358.7 kB / 425.5 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008493/0.2815, allocations: 332.6 kB / 425.9 MB, free: 9.102 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008288/0.2823, allocations: 374.1 kB / 426.2 MB, free: 8.727 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008234/0.2831, allocations: 351.6 kB / 426.6 MB, free: 8.379 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2831, allocations: 7.953 kB / 426.6 MB, free: 8.371 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002323/0.2855, allocations: 0.96 MB / 427.5 MB, free: 7.395 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.2855, allocations: 37.7 kB / 427.6 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.2855, allocations: 3.938 kB / 427.6 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.2866, allocations: 420.5 kB / 428 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004553/0.2871, allocations: 107.9 kB / 428.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007289/0.2944, allocations: 3.492 MB / 431.6 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007376/0.2952, allocations: 119.5 kB / 431.7 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.2952, allocations: 19.98 kB / 431.7 MB, free: 3.066 MB / 298.7 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.0002327/0.2955, allocations: 165.8 kB / 431.9 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-05/0.2956, allocations: 43.53 kB / 431.9 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-05/0.2957, allocations: 56.41 kB / 432 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.2957, allocations: 4.094 kB / 432 MB, free: 2.793 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2957, allocations: 3.984 kB / 432 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.2957, allocations: 7.984 kB / 432 MB, free: 2.781 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.2962, allocations: 0.6067 MB / 432.6 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2963, allocations: 0 / 432.6 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/0.2967, allocations: 99.92 kB / 432.7 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.2978, allocations: 423.3 kB / 433.1 MB, free: 1.613 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.2978, allocations: 8 kB / 433.1 MB, free: 1.605 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007584/0.3054, allocations: 3.491 MB / 436.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3054, allocations: 3.984 kB / 436.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006249/0.3117, allocations: 1.654 MB / 438.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.3121, allocations: 180.4 kB / 438.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.3122, allocations: 8 kB / 438.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006546/0.3129, allocations: 91.92 kB / 438.5 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.3131, allocations: 55.91 kB / 438.6 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-05/0.3131, allocations: 12 kB / 438.6 MB, free: 11.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004055/0.3136, allocations: 283.2 kB / 438.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3136, allocations: 3.938 kB / 438.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007455/0.3143, allocations: 175.8 kB / 439.1 MB, free: 11.5 MB / 314.7 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.0002052/0.3145, allocations: 119.1 kB / 439.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002816/0.3174, allocations: 1.009 MB / 440.2 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3174, allocations: 0 / 440.2 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.319, allocations: 0.5884 MB / 440.8 MB, free: 9.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006016/0.3196, allocations: 87.55 kB / 440.9 MB, free: 9.648 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003418/0.323, allocations: 1.448 MB / 442.3 MB, free: 8.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.3234, allocations: 0.8469 MB / 443.2 MB, free: 7.301 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.3236, allocations: 27.44 kB / 443.2 MB, free: 7.273 MB / 314.7 MB Notification: Performance of SimCode: time 1.262e-06/0.3236, allocations: 3.938 kB / 443.2 MB, free: 7.27 MB / 314.7 MB Notification: Performance of Templates: time 0.01521/0.3388, allocations: 9.816 MB / 453 MB, free: 13.49 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches