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/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.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/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 109.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002217/0.002217, allocations: 209.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2642, allocations: 50.54 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004144/0.2684, allocations: 2.925 MB / 412.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.2699, allocations: 0.8062 MB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002576/0.2702, allocations: 4 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.2705, allocations: 51.5 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.2707, allocations: 95.12 kB / 413.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004099/0.2712, allocations: 119.7 kB / 413.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004868/0.2717, allocations: 410.3 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002568/0.2719, allocations: 127.2 kB / 414.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003015/0.2722, allocations: 155.5 kB / 414.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002456/0.2725, allocations: 163.2 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.456e-05/0.2726, allocations: 40 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.2727, allocations: 36 kB / 414.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-05/0.2728, allocations: 75.75 kB / 414.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.273, allocations: 187.1 kB / 415.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.2734, allocations: 435.7 kB / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2734, allocations: 0 / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2734, allocations: 0 / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.2734, allocations: 4 kB / 415.5 MB, free: 11.98 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001108/0.2745, allocations: 0.6284 MB / 416.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.2746, allocations: 8.031 kB / 416.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.2748, allocations: 48.55 kB / 416.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004213/0.2752, allocations: 280.7 kB / 416.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.2752, allocations: 24.92 kB / 416.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.986e-05/0.2753, allocations: 24.38 kB / 416.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.2758, allocations: 292.9 kB / 416.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2758, allocations: 0 / 416.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.2758, allocations: 16 kB / 416.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.2759, allocations: 4 kB / 416.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003906/0.2763, allocations: 202.1 kB / 417 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.278, allocations: 1.148 MB / 418.2 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005016/0.2785, allocations: 218.6 kB / 418.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002946/0.2788, allocations: 136.8 kB / 418.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.2788, allocations: 4 kB / 418.5 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000268/0.2791, allocations: 169.6 kB / 418.7 MB, free: 8.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.2791, allocations: 4 kB / 418.7 MB, free: 8.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001405/0.2805, allocations: 0.5107 MB / 419.2 MB, free: 8.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.999e-05/0.2806, allocations: 136.5 kB / 419.4 MB, free: 7.883 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.2809, allocations: 248.9 kB / 419.6 MB, free: 7.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.2809, allocations: 33.69 kB / 419.6 MB, free: 7.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.2811, allocations: 168.5 kB / 419.8 MB, free: 7.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.754e-05/0.2811, allocations: 70.94 kB / 419.9 MB, free: 7.355 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.2812, allocations: 53.7 kB / 419.9 MB, free: 7.297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.2813, allocations: 330.8 kB / 420.2 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.2815, allocations: 75.97 kB / 420.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.2817, allocations: 125.1 kB / 420.4 MB, free: 6.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/0.282, allocations: 167.4 kB / 420.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.282, allocations: 0 / 420.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005036/0.2825, allocations: 298 kB / 420.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.2825, allocations: 6.969 kB / 420.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.2825, allocations: 4 kB / 420.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003348/0.2829, allocations: 88.78 kB / 421 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.283, allocations: 36.02 kB / 421 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.2853, allocations: 2.135 MB / 423.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.2855, allocations: 27.86 kB / 423.2 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.2856, allocations: 8 kB / 423.2 MB, free: 3.824 MB / 334.1 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.0001629/0.2857, allocations: 153.9 kB / 423.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/0.2858, allocations: 31.59 kB / 423.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.93e-05/0.2858, allocations: 30.17 kB / 423.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2859, allocations: 4 kB / 423.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.2859, allocations: 0 / 423.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.2859, allocations: 7.984 kB / 423.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009521/0.2868, allocations: 0.7723 MB / 424.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2868, allocations: 0 / 424.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.287, allocations: 23.98 kB / 424.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002589/0.2872, allocations: 88.95 kB / 424.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.2873, allocations: 12.09 kB / 424.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/0.2894, allocations: 2.15 MB / 426.5 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2895, allocations: 0 / 426.5 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006791/0.2901, allocations: 453.5 kB / 426.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.2903, allocations: 124.8 kB / 427 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.2903, allocations: 4 kB / 427 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.2906, allocations: 24.11 kB / 427.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.55e-05/0.2907, allocations: 27.95 kB / 427.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.2907, allocations: 12 kB / 427.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001593/0.2909, allocations: 172.5 kB / 427.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2909, allocations: 0 / 427.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004644/0.2913, allocations: 87.84 kB / 427.3 MB, free: 15.42 MB / 350.1 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.0001285/0.2915, allocations: 115.2 kB / 427.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006686/0.2921, allocations: 362.4 kB / 427.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2922, allocations: 3.938 kB / 427.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003868/0.2926, allocations: 267.9 kB / 428.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.293, allocations: 62.88 kB / 428.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.2941, allocations: 0.6177 MB / 428.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.2944, allocations: 0.7638 MB / 429.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/0.2945, allocations: 19.44 kB / 429.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2945, allocations: 0 / 429.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of Templates: time 0.006888/0.3014, allocations: 4.711 MB / 434.3 MB, free: 8.449 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches