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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009813/0.0009813, allocations: 202.2 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008294/0.0008295, allocations: 99.92 kB / 297.3 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002426/0.0002426, allocations: 4 kB / 358 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1838, allocations: 51.48 MB / 409.5 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09105/0.2749, allocations: 79.42 MB / 488.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.2752, allocations: 71.95 kB / 489 MB, free: 11.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007562/0.2827, allocations: 2.934 MB / 491.9 MB, free: 8.211 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2828, allocations: 0 / 491.9 MB, free: 8.211 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.2828, allocations: 4 kB / 491.9 MB, free: 8.207 MB / 362.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.0004853/0.2833, allocations: 435 kB / 492.3 MB, free: 7.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2833, allocations: 8.031 kB / 492.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.619e-05/0.2834, allocations: 42.56 kB / 492.4 MB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.2835, allocations: 31.8 kB / 492.4 MB, free: 7.641 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.2838, allocations: 206.8 kB / 492.6 MB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.2838, allocations: 8.234 kB / 492.6 MB, free: 7.391 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.2838, allocations: 16 kB / 492.6 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.284, allocations: 111.5 kB / 492.8 MB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.2841, allocations: 0 / 492.8 MB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.2841, allocations: 8 kB / 492.8 MB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2841, allocations: 0 / 492.8 MB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.2843, allocations: 88.64 kB / 492.8 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000797/0.2851, allocations: 0.6057 MB / 493.5 MB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002784/0.2854, allocations: 86.62 kB / 493.5 MB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.2854, allocations: 0 / 493.5 MB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.2854, allocations: 46.61 kB / 493.6 MB, free: 6.332 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.2854, allocations: 0 / 493.6 MB, free: 6.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006807/0.2861, allocations: 259.4 kB / 493.8 MB, free: 6.051 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.2862, allocations: 59.39 kB / 493.9 MB, free: 5.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.2863, allocations: 131.2 kB / 494 MB, free: 5.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.2863, allocations: 25.7 kB / 494 MB, free: 5.816 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.08e-05/0.2864, allocations: 131.9 kB / 494.2 MB, free: 5.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.2864, allocations: 11.75 kB / 494.2 MB, free: 5.668 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-06/0.2864, allocations: 8 kB / 494.2 MB, free: 5.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.92e-05/0.2865, allocations: 318.8 kB / 494.5 MB, free: 5.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.429e-05/0.2866, allocations: 19.98 kB / 494.5 MB, free: 5.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.983e-05/0.2867, allocations: 46.56 kB / 494.6 MB, free: 5.266 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.309e-05/0.2868, allocations: 31.98 kB / 494.6 MB, free: 5.234 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.2868, allocations: 4 kB / 494.6 MB, free: 5.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002786/0.2871, allocations: 142.2 kB / 494.7 MB, free: 5.082 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2871, allocations: 11.94 kB / 494.8 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.2871, allocations: 0 / 494.8 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001731/0.2873, allocations: 37.02 kB / 494.8 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.278e-05/0.2873, allocations: 8 kB / 494.8 MB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.2887, allocations: 1.533 MB / 496.3 MB, free: 3.355 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.431e-05/0.2888, allocations: 23.89 kB / 496.4 MB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.2888, allocations: 4 kB / 496.4 MB, free: 3.328 MB / 362.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 () * Number of clocked 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 8.641e-05/0.2889, allocations: 117.8 kB / 496.5 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.2889, allocations: 7.906 kB / 496.5 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.113e-05/0.2889, allocations: 12.72 kB / 496.5 MB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.289, allocations: 3.984 kB / 496.5 MB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.289, allocations: 4 kB / 496.5 MB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.289, allocations: 0 / 496.5 MB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001996/0.2892, allocations: 217.5 kB / 496.7 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2892, allocations: 0 / 496.7 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.905e-05/0.2892, allocations: 4 kB / 496.7 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001269/0.2894, allocations: 36.83 kB / 496.8 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.2894, allocations: 4 kB / 496.8 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.2905, allocations: 1.514 MB / 498.3 MB, free: 1.219 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2905, allocations: 0 / 498.3 MB, free: 1.219 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.2908, allocations: 224.2 kB / 498.5 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.89e-05/0.2909, allocations: 85.02 kB / 498.6 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.2909, allocations: 0 / 498.6 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.291, allocations: 15.98 kB / 498.6 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.488e-05/0.2911, allocations: 4 kB / 498.6 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.2911, allocations: 0 / 498.6 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.484e-05/0.2911, allocations: 114 kB / 498.7 MB, free: 0.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2912, allocations: 3.938 kB / 498.7 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003469/0.2915, allocations: 47.84 kB / 498.8 MB, free: 0.6992 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 () * Number of clocked 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 0.0005606/0.2921, allocations: 0.7522 MB / 499.5 MB, free: 15.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003533/0.2924, allocations: 186.6 kB / 499.7 MB, free: 15.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2925, allocations: 0 / 499.7 MB, free: 15.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.2927, allocations: 162.7 kB / 499.9 MB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001819/0.2929, allocations: 25.97 kB / 499.9 MB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.2941, allocations: 1.103 MB / 0.4892 GB, free: 14.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.2944, allocations: 0.7199 MB / 0.4899 GB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.398e-05/0.2944, allocations: 448 / 0.4899 GB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.761e-05/0.2945, allocations: 31.42 kB / 0.49 GB, free: 13.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2945, allocations: 0 / 0.49 GB, free: 13.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01498/0.3095, allocations: 2.564 MB / 0.4925 GB, free: 11.17 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/0.3097, allocations: 194.5 kB / 0.4927 GB, free: 10.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.511/1.82, allocations: 0 / 0.4927 GB, free: 10.93 MB / 378.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