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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001009/0.001009, allocations: 197 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.153/1.153, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008678/0.0008679, allocations: 95.92 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09692/0.09781, allocations: 56.9 MB / 343.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.1829, allocations: 51.47 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2152/0.3981, allocations: 79.72 MB / 474.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001691/0.3984, allocations: 67.64 kB / 474.5 MB, free: 12.5 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.01233/0.4107, allocations: 5.468 MB / 480 MB, free: 9.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.4107, allocations: 8 kB / 480 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.4109, allocations: 52.33 kB / 480 MB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.4112, allocations: 263.2 kB / 480.3 MB, free: 8.691 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.4112, allocations: 12 kB / 480.3 MB, free: 8.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.4113, allocations: 16 kB / 480.3 MB, free: 8.664 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002936/0.4116, allocations: 168.3 kB / 480.5 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003206/0.4119, allocations: 239.7 kB / 480.7 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.4119, allocations: 0 / 480.7 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.412, allocations: 3.906 kB / 480.7 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.412, allocations: 9.938 kB / 480.7 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.4133, allocations: 1.092 MB / 481.8 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.4137, allocations: 177.2 kB / 482 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.4139, allocations: 130.3 kB / 482.1 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.4139, allocations: 11.41 kB / 482.1 MB, free: 7.199 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.4141, allocations: 149.9 kB / 482.3 MB, free: 7.062 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.332e-06/0.4141, allocations: 0 / 482.3 MB, free: 7.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004602/0.4146, allocations: 249.2 kB / 482.5 MB, free: 6.867 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.4146, allocations: 128.5 kB / 482.6 MB, free: 6.711 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.4148, allocations: 203.8 kB / 482.8 MB, free: 6.543 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.4148, allocations: 25.7 kB / 482.9 MB, free: 6.512 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.4148, allocations: 146.8 kB / 483 MB, free: 6.375 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.965e-05/0.4149, allocations: 70.25 kB / 483.1 MB, free: 6.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.097e-05/0.4149, allocations: 4 kB / 483.1 MB, free: 6.312 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.644e-05/0.415, allocations: 330.1 kB / 483.4 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.4151, allocations: 58.38 kB / 483.5 MB, free: 5.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.4152, allocations: 107.3 kB / 483.6 MB, free: 5.867 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.4153, allocations: 62.59 kB / 483.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4153, allocations: 0 / 483.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003368/0.4156, allocations: 260.7 kB / 483.9 MB, free: 5.637 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.4157, allocations: 4 kB / 483.9 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.4157, allocations: 4.125 kB / 483.9 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.416, allocations: 91.62 kB / 484 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.4161, allocations: 27.3 kB / 484 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.4177, allocations: 1.857 MB / 485.9 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.4179, allocations: 33.58 kB / 485.9 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.418, allocations: 7.875 kB / 485.9 MB, free: 3.781 MB / 346.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.511e-05/0.418, allocations: 113.9 kB / 486 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.356e-05/0.4181, allocations: 23.72 kB / 486 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.4181, allocations: 29.17 kB / 486.1 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.4181, allocations: 4 kB / 486.1 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.4181, allocations: 0 / 486.1 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.4182, allocations: 8 kB / 486.1 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007323/0.4189, allocations: 0.7255 MB / 486.8 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4189, allocations: 4 kB / 486.8 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.419, allocations: 16 kB / 486.8 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002436/0.4193, allocations: 95.47 kB / 486.9 MB, free: 2.906 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.4193, allocations: 0 / 486.9 MB, free: 2.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.4208, allocations: 1.807 MB / 488.7 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4208, allocations: 1.125 kB / 488.7 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004354/0.4212, allocations: 425.2 kB / 489.1 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005625/0.4218, allocations: 0.8767 MB / 490 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.05e-05/0.4219, allocations: 115.4 kB / 490.1 MB, free: 0 / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.852e-05/0.422, allocations: 4.734 kB / 490.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.4222, allocations: 20 kB / 490.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.4223, allocations: 23.08 kB / 490.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.4223, allocations: 11 kB / 490.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001314/0.4225, allocations: 154.8 kB / 490.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00102/0.4235, allocations: 91.67 kB / 490.4 MB, free: 15.73 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.0001538/0.4237, allocations: 105.9 kB / 490.5 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005614/0.4242, allocations: 299.3 kB / 490.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4242, allocations: 0 / 490.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003077/0.4246, allocations: 220.6 kB / 491 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.4249, allocations: 36.83 kB / 491.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.4259, allocations: 405.1 kB / 491.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003947/0.4263, allocations: 0.7893 MB / 492.3 MB, free: 13.97 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4263, allocations: 0 / 492.3 MB, free: 13.97 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat