Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001013, allocations: 91.62 kB / 16.31 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 184.8 kB / 17.21 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.597/1.597, allocations: 223.3 MB / 241.2 MB, free: 5.391 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004028/0.000403, allocations: 6.75 kB / 300.8 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1883, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005729/0.1941, allocations: 3.492 MB / 354.7 MB, free: 8.137 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.1965, allocations: 0.9742 MB / 355.7 MB, free: 7.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002706/0.1968, allocations: 8 kB / 355.7 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.1971, allocations: 67.52 kB / 355.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004163/0.1975, allocations: 142.7 kB / 355.9 MB, free: 6.941 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005339/0.198, allocations: 131.8 kB / 356 MB, free: 6.812 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.1991, allocations: 0.7236 MB / 356.8 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003975/0.1995, allocations: 136 kB / 356.9 MB, free: 5.945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004634/0.2, allocations: 247.1 kB / 357.1 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005391/0.2005, allocations: 298.8 kB / 357.4 MB, free: 5.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.2007, allocations: 36 kB / 357.5 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.2008, allocations: 35.94 kB / 357.5 MB, free: 5.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.201, allocations: 107.5 kB / 357.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.2012, allocations: 133.4 kB / 357.7 MB, free: 5.098 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007965/0.202, allocations: 0.6193 MB / 358.4 MB, free: 4.477 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.202, allocations: 4 kB / 358.4 MB, free: 4.473 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.202, allocations: 0 / 358.4 MB, free: 4.473 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.202, allocations: 0 / 358.4 MB, free: 4.473 MB / 286.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.003185/0.2052, allocations: 0.9992 MB / 359.4 MB, free: 3.414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.2053, allocations: 8.031 kB / 359.4 MB, free: 3.406 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.2055, allocations: 59.34 kB / 359.4 MB, free: 3.348 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007204/0.2062, allocations: 393 kB / 359.8 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.146e-05/0.2063, allocations: 25 kB / 359.8 MB, free: 2.898 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.2064, allocations: 40 kB / 359.9 MB, free: 2.859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002005/0.2084, allocations: 0.638 MB / 360.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.2084, allocations: 0 / 360.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.268e-05/0.2085, allocations: 19.95 kB / 360.5 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.2085, allocations: 12 kB / 360.5 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002679/0.2112, allocations: 0.7065 MB / 361.3 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00429/0.2155, allocations: 2.215 MB / 363.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003711/0.2192, allocations: 0.9929 MB / 364.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009994/0.2203, allocations: 439.1 kB / 364.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.267e-05/0.2203, allocations: 4.328 kB / 364.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.2215, allocations: 470.7 kB / 365.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.994e-06/0.2215, allocations: 0 / 365.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01339/0.2349, allocations: 2.633 MB / 368 MB, free: 10.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.023e-05/0.235, allocations: 81.11 kB / 368.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006121/0.2356, allocations: 410 kB / 368.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.909e-05/0.2357, allocations: 37.7 kB / 368.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.2359, allocations: 228.6 kB / 368.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.2361, allocations: 130.1 kB / 368.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.2362, allocations: 12 kB / 368.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.2364, allocations: 350.8 kB / 369.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009651/0.2374, allocations: 336.5 kB / 369.5 MB, free: 8.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009421/0.2383, allocations: 374.1 kB / 369.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009198/0.2392, allocations: 359.6 kB / 370.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.2393, allocations: 0 / 370.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002589/0.2418, allocations: 0.9639 MB / 371.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/0.2419, allocations: 37.69 kB / 371.3 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2419, allocations: 4 kB / 371.3 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.2431, allocations: 422.7 kB / 371.7 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/0.2436, allocations: 111.8 kB / 371.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008357/0.252, allocations: 3.483 MB / 375.3 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007334/0.2528, allocations: 119.5 kB / 375.4 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.706e-05/0.2529, allocations: 12 kB / 375.4 MB, free: 2.945 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 ($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.0003707/0.2532, allocations: 165.8 kB / 375.6 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.2534, allocations: 39.53 kB / 375.6 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.2535, allocations: 64.45 kB / 375.7 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.2536, allocations: 7.953 kB / 375.7 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2536, allocations: 0 / 375.7 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.2536, allocations: 4 kB / 375.7 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000901/0.2545, allocations: 0.6106 MB / 376.3 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.2545, allocations: 0 / 376.3 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004964/0.255, allocations: 103.9 kB / 376.4 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.2562, allocations: 420.6 kB / 376.8 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-05/0.2562, allocations: 11.98 kB / 376.8 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007706/0.2639, allocations: 3.491 MB / 380.3 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.264, allocations: 4 kB / 380.3 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005549/0.2695, allocations: 1.65 MB / 381.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003018/0.2698, allocations: 176.5 kB / 382.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.27, allocations: 15.94 kB / 382.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005773/0.2705, allocations: 95.91 kB / 382.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.2707, allocations: 51.88 kB / 382.3 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.2708, allocations: 15.98 kB / 382.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003571/0.2711, allocations: 283.2 kB / 382.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2711, allocations: 0 / 382.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006993/0.2718, allocations: 175.8 kB / 382.7 MB, free: 11.36 MB / 318.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 (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.0001748/0.272, allocations: 107.2 kB / 382.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002542/0.2746, allocations: 1.009 MB / 383.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.2746, allocations: 0 / 383.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/0.2761, allocations: 0.6003 MB / 384.5 MB, free: 9.598 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.2766, allocations: 85.41 kB / 384.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003093/0.2797, allocations: 1.419 MB / 386 MB, free: 8.074 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.2801, allocations: 0.8358 MB / 386.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002464/0.2804, allocations: 51.38 kB / 386.8 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.2805, allocations: 23.44 kB / 386.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2805, allocations: 0 / 386.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of Templates: time 0.02109/0.3016, allocations: 12.36 MB / 399.2 MB, free: 10.86 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches