Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 183.4 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.138/1.138, allocations: 221.4 MB / 229.9 MB, free: 3.062 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009421/0.000942, allocations: 105.8 kB / 280.8 MB, free: 1.301 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.272e-06/6.292e-06, allocations: 0 / 336.5 MB, free: 9.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2046, allocations: 50.39 MB / 386.9 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08479/0.2895, allocations: 78.91 MB / 465.8 MB, free: 7.895 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.2898, allocations: 72.73 kB / 465.9 MB, free: 7.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01251/0.3023, allocations: 4.812 MB / 470.7 MB, free: 3.031 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.3024, allocations: 4 kB / 470.7 MB, free: 3.027 MB / 346.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.000738/0.3031, allocations: 0.5469 MB / 471.2 MB, free: 2.438 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.3031, allocations: 8.031 kB / 471.3 MB, free: 2.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.311e-05/0.3032, allocations: 43.52 kB / 471.3 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.3035, allocations: 278.4 kB / 471.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.3036, allocations: 8.562 kB / 471.6 MB, free: 2.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.3036, allocations: 16.62 kB / 471.6 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003259/0.3039, allocations: 169 kB / 471.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003646/0.3043, allocations: 242.6 kB / 472 MB, free: 1.633 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.3043, allocations: 3.984 kB / 472 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.3044, allocations: 0 / 472 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.3044, allocations: 12.84 kB / 472 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.3058, allocations: 1.086 MB / 473.1 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003353/0.3062, allocations: 182 kB / 473.3 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.3064, allocations: 139 kB / 473.4 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.3065, allocations: 192 / 473.4 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001906/0.3067, allocations: 157.4 kB / 473.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.182e-06/0.3067, allocations: 0 / 473.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005047/0.3072, allocations: 234.2 kB / 473.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.3073, allocations: 140.5 kB / 473.9 MB, free: 15.56 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.3074, allocations: 191.9 kB / 474.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.3075, allocations: 26.55 kB / 474.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.931e-05/0.3075, allocations: 156.2 kB / 474.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.246e-05/0.3076, allocations: 74.98 kB / 474.4 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.3076, allocations: 0 / 474.4 MB, free: 15.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.703e-05/0.3077, allocations: 330.8 kB / 474.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.3078, allocations: 56 kB / 474.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.308, allocations: 109.1 kB / 474.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.3081, allocations: 71.94 kB / 474.9 MB, free: 14.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3081, allocations: 0 / 474.9 MB, free: 14.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003858/0.3085, allocations: 250.7 kB / 475.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.888e-06/0.3085, allocations: 6.969 kB / 475.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3085, allocations: 4.688 kB / 475.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/0.3088, allocations: 104.8 kB / 475.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.309, allocations: 23.98 kB / 475.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.3109, allocations: 1.852 MB / 477.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/0.3111, allocations: 32.45 kB / 477.2 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.3111, allocations: 12.06 kB / 477.2 MB, free: 12.13 MB / 362.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,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 10} Notification: Performance of prepare postOptimizeDAE: time 8.706e-05/0.3112, allocations: 116.8 kB / 477.3 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.3113, allocations: 23.72 kB / 477.3 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.234e-05/0.3113, allocations: 30.05 kB / 477.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3113, allocations: 0 / 477.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3113, allocations: 4.938 kB / 477.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3113, allocations: 0 / 477.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008384/0.3122, allocations: 0.7301 MB / 478.1 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3122, allocations: 0 / 478.1 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.3123, allocations: 19.98 kB / 478.1 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002419/0.3126, allocations: 84.86 kB / 478.2 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.3126, allocations: 16.02 kB / 478.2 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/0.3143, allocations: 1.797 MB / 480 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3143, allocations: 64 / 480 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005258/0.3149, allocations: 431.8 kB / 480.4 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.315, allocations: 124.7 kB / 480.6 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.234e-05/0.3151, allocations: 3.984 kB / 480.6 MB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.3153, allocations: 24.05 kB / 480.6 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.059e-05/0.3154, allocations: 23.88 kB / 480.6 MB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.3154, allocations: 8 kB / 480.6 MB, free: 8.488 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001319/0.3155, allocations: 152.5 kB / 480.8 MB, free: 8.344 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004121/0.3159, allocations: 75.84 kB / 480.8 MB, free: 8.27 MB / 362.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.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * 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 (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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001363/0.3161, allocations: 107.2 kB / 480.9 MB, free: 8.156 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005337/0.3166, allocations: 289.6 kB / 481.2 MB, free: 7.863 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3166, allocations: 4 kB / 481.2 MB, free: 7.859 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.3169, allocations: 214.1 kB / 481.4 MB, free: 7.641 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.3172, allocations: 37.3 kB / 481.5 MB, free: 7.602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009379/0.3182, allocations: 409.4 kB / 481.9 MB, free: 7.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003471/0.3185, allocations: 0.7904 MB / 482.7 MB, free: 6.363 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3186, allocations: 0 / 482.7 MB, free: 6.363 MB / 362.7 MB Notification: Performance of Templates: time 0.007019/0.3256, allocations: 3.957 MB / 486.6 MB, free: 2.48 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches