Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",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.0009842/0.0009842, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.142/1.142, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009592/0.0009592, allocations: 95.02 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09527/0.09626, allocations: 56.9 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.1826, allocations: 51.48 MB / 394.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2217/0.4043, allocations: 78.82 MB / 473.5 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.4046, allocations: 67.5 kB / 473.6 MB, free: 12.92 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.01314/0.4177, allocations: 5.524 MB / 479.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.4178, allocations: 8 kB / 479.1 MB, free: 9.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.418, allocations: 58.83 kB / 479.2 MB, free: 9.426 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.4183, allocations: 267.7 kB / 479.5 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.4183, allocations: 8 kB / 479.5 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.4183, allocations: 16 kB / 479.5 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002935/0.4186, allocations: 160.2 kB / 479.6 MB, free: 9.027 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.4189, allocations: 198.8 kB / 479.8 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.4189, allocations: 0 / 479.8 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.419, allocations: 0 / 479.8 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.419, allocations: 12 kB / 479.8 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.4204, allocations: 0.9291 MB / 480.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.4207, allocations: 171.9 kB / 480.9 MB, free: 7.906 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.4209, allocations: 95.97 kB / 481 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.4209, allocations: 8.188 kB / 481 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.429e-05/0.4209, allocations: 31.62 kB / 481.1 MB, free: 7.797 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.4209, allocations: 4 kB / 481.1 MB, free: 7.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004347/0.4214, allocations: 215.8 kB / 481.3 MB, free: 7.617 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.549e-05/0.4214, allocations: 60.09 kB / 481.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.4216, allocations: 206.3 kB / 481.5 MB, free: 7.371 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.4216, allocations: 32.95 kB / 481.6 MB, free: 7.336 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.5e-05/0.4216, allocations: 161.9 kB / 481.7 MB, free: 7.184 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.4217, allocations: 68.81 kB / 481.8 MB, free: 7.125 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.628e-06/0.4217, allocations: 4 kB / 481.8 MB, free: 7.121 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.208e-05/0.4217, allocations: 331.5 kB / 482.1 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.663e-05/0.4218, allocations: 50.78 kB / 482.2 MB, free: 6.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.604e-05/0.4219, allocations: 81.56 kB / 482.3 MB, free: 6.707 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.865e-05/0.422, allocations: 68.09 kB / 482.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.422, allocations: 3.906 kB / 482.3 MB, free: 6.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003828/0.4224, allocations: 252.3 kB / 482.6 MB, free: 6.461 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.4225, allocations: 8 kB / 482.6 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.4225, allocations: 4.062 kB / 482.6 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002263/0.4227, allocations: 71.83 kB / 482.7 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.4229, allocations: 47.42 kB / 482.7 MB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001436/0.4243, allocations: 2.686 MB / 485.4 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.4245, allocations: 27.77 kB / 485.4 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.4246, allocations: 7.938 kB / 485.4 MB, free: 3.562 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.327e-05/0.4246, allocations: 116.9 kB / 485.5 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.4247, allocations: 27.55 kB / 485.6 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.4247, allocations: 24.67 kB / 485.6 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.4247, allocations: 4 kB / 485.6 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.4247, allocations: 0 / 485.6 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4248, allocations: 0 / 485.6 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006055/0.4254, allocations: 0.5831 MB / 486.2 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.4254, allocations: 3.906 kB / 486.2 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.4255, allocations: 31.97 kB / 486.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001654/0.4257, allocations: 75.05 kB / 486.3 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.4257, allocations: 2.5 kB / 486.3 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.4271, allocations: 2.686 MB / 489 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4271, allocations: 0 / 489 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004534/0.4275, allocations: 331 kB / 489.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004906/0.428, allocations: 0.6902 MB / 490 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.585e-05/0.4281, allocations: 104.8 kB / 490.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/0.4282, allocations: 0 / 490.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.4284, allocations: 31.98 kB / 490.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.4285, allocations: 24.69 kB / 490.1 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.4285, allocations: 7.375 kB / 490.1 MB, free: 14.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001248/0.4287, allocations: 159.5 kB / 490.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009191/0.4296, allocations: 79.84 kB / 490.4 MB, free: 14.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001267/0.4297, allocations: 103.2 kB / 490.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000504/0.4302, allocations: 365.8 kB / 490.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4302, allocations: 12.75 kB / 490.9 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003121/0.4306, allocations: 286 kB / 491.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.4308, allocations: 38.03 kB / 491.2 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006325/0.4315, allocations: 305 kB / 491.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003718/0.4318, allocations: 0.7916 MB / 492.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4319, allocations: 4 kB / 492.3 MB, free: 12.84 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat