Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009491/0.0009492, allocations: 93.84 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.00125, allocations: 51.92 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.254, allocations: 50.45 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003353/0.2574, allocations: 2.972 MB / 410 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2586, allocations: 0.7793 MB / 410.8 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.2588, allocations: 4 kB / 410.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.259, allocations: 39.7 kB / 410.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.2591, allocations: 79.31 kB / 410.9 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.2594, allocations: 99.86 kB / 411 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002748/0.2597, allocations: 386.3 kB / 411.4 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.2599, allocations: 119.9 kB / 411.5 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.2601, allocations: 139.4 kB / 411.6 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2603, allocations: 147.3 kB / 411.8 MB, free: 23.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.808e-05/0.2603, allocations: 24 kB / 411.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.538e-05/0.2604, allocations: 20 kB / 411.8 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.389e-05/0.2604, allocations: 55.77 kB / 411.9 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.2606, allocations: 159.1 kB / 412 MB, free: 22.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003126/0.2609, allocations: 412.2 kB / 412.4 MB, free: 22.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2609, allocations: 0 / 412.4 MB, free: 22.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2609, allocations: 4 kB / 412.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.2609, allocations: 0 / 412.5 MB, free: 22.42 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0008755/0.2618, allocations: 0.6245 MB / 413.1 MB, free: 21.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.2618, allocations: 12.03 kB / 413.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.262, allocations: 44.55 kB / 413.1 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.2623, allocations: 283.5 kB / 413.4 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.2623, allocations: 16.94 kB / 413.4 MB, free: 21.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/0.2623, allocations: 28.36 kB / 413.5 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.2627, allocations: 288.9 kB / 413.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2628, allocations: 0 / 413.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.2628, allocations: 16 kB / 413.7 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.902e-06/0.2628, allocations: 4 kB / 413.8 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003291/0.2631, allocations: 210.1 kB / 414 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.2646, allocations: 1.148 MB / 415.1 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004799/0.265, allocations: 223.2 kB / 415.3 MB, free: 19.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.2653, allocations: 148.8 kB / 415.5 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.2654, allocations: 0 / 415.5 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000327/0.2657, allocations: 173.7 kB / 415.6 MB, free: 19.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.634e-06/0.2657, allocations: 0 / 415.6 MB, free: 19.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001222/0.2669, allocations: 0.5146 MB / 416.2 MB, free: 18.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.267, allocations: 132.5 kB / 416.3 MB, free: 18.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.2672, allocations: 244.9 kB / 416.5 MB, free: 18.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.2672, allocations: 29.7 kB / 416.6 MB, free: 18.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.692e-05/0.2673, allocations: 164.5 kB / 416.7 MB, free: 17.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.509e-05/0.2674, allocations: 78.92 kB / 416.8 MB, free: 17.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.111e-05/0.2674, allocations: 49.7 kB / 416.8 MB, free: 17.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.501e-05/0.2675, allocations: 330.8 kB / 417.2 MB, free: 17.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.2676, allocations: 75.97 kB / 417.2 MB, free: 17.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.2678, allocations: 125 kB / 417.4 MB, free: 17.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.268, allocations: 168.9 kB / 417.5 MB, free: 17.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.268, allocations: 4 kB / 417.5 MB, free: 17 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004028/0.2684, allocations: 298 kB / 417.8 MB, free: 16.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.2685, allocations: 4 kB / 417.8 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.2685, allocations: 4 kB / 417.8 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003331/0.2688, allocations: 84.8 kB / 417.9 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.2689, allocations: 36.02 kB / 417.9 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/0.2706, allocations: 1.947 MB / 419.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.2708, allocations: 31.86 kB / 419.9 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.2708, allocations: 8 kB / 419.9 MB, free: 14.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.2709, allocations: 145.9 kB / 420.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.271, allocations: 23.72 kB / 420.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.271, allocations: 38.11 kB / 420.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.271, allocations: 7.922 kB / 420.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.271, allocations: 0 / 420.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.271, allocations: 7.984 kB / 420.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006876/0.2717, allocations: 0.7672 MB / 420.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2717, allocations: 0 / 420.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.2719, allocations: 23.92 kB / 420.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002181/0.2721, allocations: 84.8 kB / 421 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.2721, allocations: 8 kB / 421 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001495/0.2736, allocations: 1.935 MB / 423 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2736, allocations: 4.031 kB / 423 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003864/0.2775, allocations: 4.016 MB / 427 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.745e-05/0.2776, allocations: 120.8 kB / 427.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/0.2776, allocations: 8 kB / 427.1 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.2778, allocations: 15.98 kB / 427.1 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.278, allocations: 31.95 kB / 427.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.278, allocations: 8 kB / 427.2 MB, free: 6.715 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001211/0.2781, allocations: 176.6 kB / 427.3 MB, free: 6.543 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2781, allocations: 4 kB / 427.3 MB, free: 6.539 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005538/0.2787, allocations: 131.8 kB / 427.5 MB, free: 6.41 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001281/0.2788, allocations: 111.8 kB / 427.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005512/0.2794, allocations: 350.6 kB / 427.9 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.2794, allocations: 112 / 427.9 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.2797, allocations: 262.4 kB / 428.2 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.2801, allocations: 67.27 kB / 428.2 MB, free: 5.602 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.2814, allocations: 1.048 MB / 429.3 MB, free: 4.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001783/0.2816, allocations: 0.7717 MB / 430.1 MB, free: 3.703 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.2817, allocations: 26.28 kB / 430.1 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.2817, allocations: 15.44 kB / 430.1 MB, free: 3.66 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2817, allocations: 0 / 430.1 MB, free: 3.66 MB / 298.7 MB Notification: Performance of Templates: time 0.008572/0.2903, allocations: 5.402 MB / 435.5 MB, free: 14.32 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches