Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [: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 3.2.3+maint.om/package.mo): time 0.000944/0.0009441, allocations: 171.4 kB / 8.471 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.08/1.08, allocations: 205.2 MB / 214.1 MB, free: 5.066 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008078/0.0008078, allocations: 86.33 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1686/0.1695, allocations: 52.97 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06395/0.2334, allocations: 47.59 MB / 362.6 MB, free: 9.84 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2046/0.4381, allocations: 77.49 MB / 440.1 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001588/0.4383, allocations: 66.58 kB / 440.2 MB, free: 10.68 MB / 314.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.01211/0.4504, allocations: 5.2 MB / 445.4 MB, free: 9.859 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.4504, allocations: 7.688 kB / 445.4 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.632e-05/0.4505, allocations: 39.66 kB / 445.4 MB, free: 9.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.4509, allocations: 272.3 kB / 445.7 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.4509, allocations: 8.203 kB / 445.7 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.898e-05/0.4509, allocations: 15.53 kB / 445.7 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003126/0.4512, allocations: 172.2 kB / 445.9 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/0.4516, allocations: 243.6 kB / 446.1 MB, free: 9.547 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.4516, allocations: 4 kB / 446.1 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.4517, allocations: 4.516 kB / 446.1 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.4517, allocations: 9.812 kB / 446.2 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.4531, allocations: 1.092 MB / 447.2 MB, free: 8.969 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.4534, allocations: 182.9 kB / 447.4 MB, free: 8.941 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.4536, allocations: 131.3 kB / 447.6 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.4537, allocations: 4.031 kB / 447.6 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.4538, allocations: 151.9 kB / 447.7 MB, free: 8.848 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 1.974e-06/0.4538, allocations: 0 / 447.7 MB, free: 8.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004694/0.4543, allocations: 245.1 kB / 447.9 MB, free: 8.781 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.4544, allocations: 133 kB / 448.1 MB, free: 8.625 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.4545, allocations: 197.3 kB / 448.3 MB, free: 8.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.4546, allocations: 25.7 kB / 448.3 MB, free: 8.488 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.94e-05/0.4546, allocations: 150.9 kB / 448.4 MB, free: 8.359 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.4547, allocations: 76.86 kB / 448.5 MB, free: 8.309 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.4547, allocations: 0 / 448.5 MB, free: 8.309 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.075e-05/0.4547, allocations: 325.8 kB / 448.8 MB, free: 7.992 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.311e-05/0.4548, allocations: 64.09 kB / 448.9 MB, free: 7.992 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.4549, allocations: 107.2 kB / 449 MB, free: 7.938 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.455, allocations: 74.62 kB / 449.1 MB, free: 7.922 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.455, allocations: 0 / 449.1 MB, free: 7.922 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003245/0.4554, allocations: 251.3 kB / 449.3 MB, free: 7.852 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.4554, allocations: 5.25 kB / 449.3 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.4554, allocations: 0 / 449.3 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002921/0.4557, allocations: 94.62 kB / 449.4 MB, free: 7.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.4558, allocations: 26.67 kB / 449.4 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/0.4574, allocations: 1.857 MB / 451.3 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.4576, allocations: 27.56 kB / 451.3 MB, free: 6.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.4576, allocations: 15.62 kB / 451.3 MB, free: 6.406 MB / 314.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 7.665e-05/0.4577, allocations: 116.8 kB / 451.5 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/0.4577, allocations: 23.25 kB / 451.5 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.618e-05/0.4578, allocations: 24.77 kB / 451.5 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.4578, allocations: 3.906 kB / 451.5 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.4578, allocations: 4 kB / 451.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.4578, allocations: 0 / 451.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007098/0.4585, allocations: 0.7363 MB / 452.2 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4585, allocations: 0 / 452.2 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.4587, allocations: 19.42 kB / 452.3 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002216/0.4589, allocations: 85.36 kB / 452.4 MB, free: 5.785 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.4589, allocations: 8.016 kB / 452.4 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001417/0.4603, allocations: 1.803 MB / 454.2 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4604, allocations: 96 / 454.2 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004363/0.4608, allocations: 420.6 kB / 454.6 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006692/0.4615, allocations: 0.882 MB / 455.5 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.4616, allocations: 122.5 kB / 455.6 MB, free: 19.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.075e-05/0.4617, allocations: 3.875 kB / 455.6 MB, free: 19.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.4619, allocations: 23.45 kB / 455.6 MB, free: 19.49 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.579e-05/0.4619, allocations: 23.19 kB / 455.6 MB, free: 19.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.4619, allocations: 7.734 kB / 455.6 MB, free: 19.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001102/0.4621, allocations: 151.3 kB / 455.8 MB, free: 19.39 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009388/0.463, allocations: 84.56 kB / 455.9 MB, free: 19.38 MB / 330.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.0001396/0.4632, allocations: 115 kB / 456 MB, free: 19.28 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004601/0.4636, allocations: 294.1 kB / 456.3 MB, free: 19.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4636, allocations: 3.781 kB / 456.3 MB, free: 19.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002715/0.4639, allocations: 223 kB / 456.5 MB, free: 19.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.4642, allocations: 37.34 kB / 456.5 MB, free: 19.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008564/0.4651, allocations: 396.7 kB / 456.9 MB, free: 18.79 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.4654, allocations: 0.7866 MB / 457.7 MB, free: 18.05 MB / 330.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4654, allocations: 3.938 kB / 457.7 MB, free: 18.04 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat