Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",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.001038/0.001038, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.148/1.148, 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.0008081/0.0008082, allocations: 90.42 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09128/0.09211, allocations: 56.9 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08381/0.1759, allocations: 51.47 MB / 394.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2137/0.3897, allocations: 78.63 MB / 473.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001537/0.3899, allocations: 66.77 kB / 473.4 MB, free: 13 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.006683/0.3966, allocations: 3.009 MB / 476.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.3966, allocations: 8 kB / 476.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.3968, allocations: 31.14 kB / 476.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.3969, allocations: 205.4 kB / 476.6 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.397, allocations: 4 kB / 476.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.397, allocations: 7.375 kB / 476.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001285/0.3971, allocations: 61.16 kB / 476.7 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.3973, allocations: 94.81 kB / 476.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.3973, allocations: 0 / 476.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.3973, allocations: 3.984 kB / 476.8 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3973, allocations: 4 kB / 476.8 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005972/0.3979, allocations: 0.5731 MB / 477.4 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.3981, allocations: 74.42 kB / 477.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.508e-05/0.3982, allocations: 26.55 kB / 477.5 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.3982, allocations: 0 / 477.5 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.125e-05/0.3982, allocations: 33.61 kB / 477.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 8.12e-07/0.3982, allocations: 4 kB / 477.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002645/0.3985, allocations: 99.5 kB / 477.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.538e-05/0.3985, allocations: 51.41 kB / 477.7 MB, free: 9.988 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.344e-05/0.3986, allocations: 131.2 kB / 477.8 MB, free: 9.875 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.617e-06/0.3986, allocations: 25.7 kB / 477.8 MB, free: 9.844 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.986e-05/0.3987, allocations: 120 kB / 477.9 MB, free: 9.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.171e-05/0.3987, allocations: 24.97 kB / 478 MB, free: 9.715 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/0.3987, allocations: 4 kB / 478 MB, free: 9.711 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.492e-05/0.3987, allocations: 317.3 kB / 478.3 MB, free: 9.398 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.129e-05/0.3988, allocations: 18.88 kB / 478.3 MB, free: 9.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.201e-05/0.3988, allocations: 37.27 kB / 478.3 MB, free: 9.352 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.909e-05/0.3989, allocations: 19.91 kB / 478.4 MB, free: 9.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3989, allocations: 3.906 kB / 478.4 MB, free: 9.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000204/0.3991, allocations: 116.1 kB / 478.5 MB, free: 9.242 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/0.3991, allocations: 4 kB / 478.5 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.3991, allocations: 0 / 478.5 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001512/0.3993, allocations: 35.22 kB / 478.5 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.322e-05/0.3993, allocations: 11.28 kB / 478.5 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008662/0.4002, allocations: 1.438 MB / 480 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.159e-05/0.4003, allocations: 15.2 kB / 480 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.4003, allocations: 9.516 kB / 480 MB, free: 7.758 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 (5): * Single equations (assignments): 4 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.4004, allocations: 107.9 kB / 480.1 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.4004, allocations: 7.906 kB / 480.1 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.768e-05/0.4004, allocations: 8.375 kB / 480.1 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.4004, allocations: 0 / 480.1 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.11e-07/0.4004, allocations: 4 kB / 480.1 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.4004, allocations: 11.05 kB / 480.1 MB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.4006, allocations: 175 kB / 480.3 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.4006, allocations: 0 / 480.3 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-05/0.4006, allocations: 7.188 kB / 480.3 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001091/0.4007, allocations: 34.38 kB / 480.3 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.4008, allocations: 0 / 480.3 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007916/0.4016, allocations: 1.431 MB / 481.8 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4016, allocations: 4 kB / 481.8 MB, free: 5.996 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001917/0.4018, allocations: 198.8 kB / 482 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002225/0.402, allocations: 0.5726 MB / 482.5 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.446e-05/0.402, allocations: 89.02 kB / 482.6 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.4021, allocations: 3.828 kB / 482.6 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.4022, allocations: 11.47 kB / 482.6 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.4022, allocations: 0 / 482.6 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.4022, allocations: 0 / 482.6 MB, free: 5.137 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.504e-05/0.4023, allocations: 110.6 kB / 482.7 MB, free: 5.043 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008796/0.4031, allocations: 35.94 kB / 482.8 MB, free: 5.008 MB / 346.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 (2): * Single equations (assignments): 1 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 9.151e-05/0.4032, allocations: 107.5 kB / 482.9 MB, free: 4.895 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002195/0.4035, allocations: 152 kB / 483 MB, free: 4.758 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.4035, allocations: 6.062 kB / 483 MB, free: 4.754 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.4036, allocations: 128.5 kB / 483.2 MB, free: 4.637 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001561/0.4038, allocations: 14.03 kB / 483.2 MB, free: 4.629 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003051/0.4041, allocations: 152 kB / 483.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.4042, allocations: 0.7157 MB / 484 MB, free: 3.762 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4043, allocations: 0 / 484 MB, free: 3.762 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat