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.00137/0.00137, allocations: 117.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2534, allocations: 50.55 MB / 409.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004491/0.2579, allocations: 4.093 MB / 414 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.2595, allocations: 1.067 MB / 415.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.2597, allocations: 8 kB / 415.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001897/0.2599, allocations: 83.14 kB / 415.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000269/0.2602, allocations: 178.4 kB / 415.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.2606, allocations: 231.6 kB / 415.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006619/0.2613, allocations: 0.8251 MB / 416.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.2615, allocations: 168.9 kB / 416.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003695/0.2619, allocations: 318.9 kB / 416.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.2623, allocations: 354.6 kB / 417.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.428e-05/0.2624, allocations: 84 kB / 417.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.2626, allocations: 91.98 kB / 417.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.2627, allocations: 171.4 kB / 417.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002588/0.263, allocations: 330.5 kB / 417.9 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006763/0.2637, allocations: 0.8618 MB / 418.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2637, allocations: 0 / 418.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2637, allocations: 0 / 418.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.2637, allocations: 0 / 418.8 MB, free: 8.91 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.002401/0.2661, allocations: 1.042 MB / 419.8 MB, free: 7.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.2662, allocations: 11.97 kB / 419.8 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.2664, allocations: 64.28 kB / 419.9 MB, free: 7.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005344/0.2669, allocations: 429.8 kB / 420.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.2669, allocations: 29.38 kB / 420.3 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.421e-05/0.267, allocations: 36.38 kB / 420.4 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.2684, allocations: 0.6071 MB / 421 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.2684, allocations: 0 / 421 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.2685, allocations: 16 kB / 421 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.2685, allocations: 8 kB / 421 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.2704, allocations: 0.6478 MB / 421.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/0.2738, allocations: 2.157 MB / 423.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003794/0.2776, allocations: 0.8585 MB / 424.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.2786, allocations: 396.5 kB / 425 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.297e-05/0.2787, allocations: 12.31 kB / 425.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.2798, allocations: 441.4 kB / 425.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.254e-06/0.2798, allocations: 0 / 425.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01383/0.2937, allocations: 2.387 MB / 427.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.2938, allocations: 85.11 kB / 428 MB, free: 15.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004891/0.2943, allocations: 417.9 kB / 428.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.694e-05/0.2943, allocations: 33.7 kB / 428.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.2945, allocations: 236.7 kB / 428.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.2946, allocations: 137.9 kB / 428.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.2948, allocations: 70.05 kB / 428.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.2949, allocations: 358.7 kB / 429.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009279/0.2959, allocations: 296.6 kB / 429.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009353/0.2968, allocations: 342.1 kB / 429.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001776/0.2986, allocations: 0.5951 MB / 430.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2986, allocations: 4 kB / 430.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003578/0.3022, allocations: 0.9978 MB / 431.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/0.3023, allocations: 29.7 kB / 431.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3023, allocations: 4 kB / 431.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.3036, allocations: 436.5 kB / 431.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/0.304, allocations: 91.92 kB / 432 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008282/0.3123, allocations: 3.813 MB / 435.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000705/0.3131, allocations: 95.7 kB / 435.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.3131, allocations: 8 kB / 435.9 MB, free: 7.297 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.0002575/0.3134, allocations: 185.6 kB / 436 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.967e-05/0.3135, allocations: 51.44 kB / 436.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.3136, allocations: 52.53 kB / 436.1 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3136, allocations: 4 kB / 436.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.3136, allocations: 4 kB / 436.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3136, allocations: 3.984 kB / 436.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006315/0.3143, allocations: 0.6182 MB / 436.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3143, allocations: 0 / 436.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/0.3148, allocations: 79.92 kB / 436.9 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.3159, allocations: 443.7 kB / 437.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.131e-05/0.316, allocations: 7.984 kB / 437.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008119/0.3241, allocations: 3.794 MB / 441.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3242, allocations: 0 / 441.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005782/0.33, allocations: 1.505 MB / 442.6 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.3302, allocations: 180.5 kB / 442.8 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.63e-05/0.3303, allocations: 11.94 kB / 442.8 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006016/0.3309, allocations: 75.91 kB / 442.9 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.3311, allocations: 55.86 kB / 442.9 MB, free: 0 / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.597e-05/0.3312, allocations: 12.05 kB / 442.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003297/0.3315, allocations: 295.1 kB / 443.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3315, allocations: 4 kB / 443.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006365/0.3322, allocations: 175.8 kB / 443.4 MB, free: 15.53 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.0001827/0.3323, allocations: 109.6 kB / 443.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.3351, allocations: 0.966 MB / 444.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3351, allocations: 0 / 444.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.3366, allocations: 0.5996 MB / 445.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004532/0.3371, allocations: 93.56 kB / 445.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.3401, allocations: 1.274 MB / 446.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.3405, allocations: 0.8433 MB / 447.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.3406, allocations: 39.42 kB / 447.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3407, allocations: 0 / 447.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of Templates: time 0.01211/0.3528, allocations: 10.01 MB / 457.3 MB, free: 1.527 MB / 366.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