Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000877/0.0008768, allocations: 93.17 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.276e-05/2.288e-05, allocations: 4 kB / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09047/0.09051, allocations: 50.43 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2805/0.3711, allocations: 78.53 MB / 472.9 MB, free: 8.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.3713, allocations: 73.78 kB / 472.9 MB, free: 8.848 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007152/0.3785, allocations: 2.814 MB / 475.8 MB, free: 6.023 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3785, allocations: 0 / 475.8 MB, free: 6.023 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.3785, allocations: 4 kB / 475.8 MB, free: 6.02 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.0004007/0.3789, allocations: 407.2 kB / 476.2 MB, free: 5.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.379, allocations: 12.03 kB / 476.2 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.285e-05/0.379, allocations: 42.55 kB / 476.2 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.3791, allocations: 15.91 kB / 476.2 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.3793, allocations: 210.8 kB / 476.4 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.3793, allocations: 8.234 kB / 476.4 MB, free: 5.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.3794, allocations: 12 kB / 476.5 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.3796, allocations: 107.5 kB / 476.6 MB, free: 5.121 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.3796, allocations: 3.953 kB / 476.6 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.3796, allocations: 4 kB / 476.6 MB, free: 5.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3796, allocations: 4 kB / 476.6 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.3798, allocations: 72.62 kB / 476.6 MB, free: 5.039 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000743/0.3805, allocations: 0.6057 MB / 477.3 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.3808, allocations: 82.53 kB / 477.3 MB, free: 4.266 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.212e-05/0.3808, allocations: 29.02 kB / 477.4 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.3809, allocations: 7.953 kB / 477.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.3809, allocations: 34.69 kB / 477.4 MB, free: 4.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.605e-06/0.3809, allocations: 0 / 477.4 MB, free: 4.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000287/0.3812, allocations: 114.3 kB / 477.5 MB, free: 4.062 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.3812, allocations: 55.41 kB / 477.6 MB, free: 3.996 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.3813, allocations: 128.1 kB / 477.7 MB, free: 3.867 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.3814, allocations: 25.7 kB / 477.7 MB, free: 3.836 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.261e-05/0.3814, allocations: 131.9 kB / 477.8 MB, free: 3.699 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.615e-05/0.3815, allocations: 19.72 kB / 477.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.3815, allocations: 0 / 477.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.939e-05/0.3816, allocations: 326.8 kB / 478.2 MB, free: 3.352 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.568e-05/0.3816, allocations: 16 kB / 478.2 MB, free: 3.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.773e-05/0.3817, allocations: 42.58 kB / 478.2 MB, free: 3.285 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.452e-05/0.3817, allocations: 23.92 kB / 478.3 MB, free: 3.262 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3817, allocations: 0 / 478.3 MB, free: 3.262 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002245/0.3819, allocations: 122.4 kB / 478.4 MB, free: 3.133 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.382, allocations: 17.58 kB / 478.4 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.382, allocations: 0 / 478.4 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001606/0.3821, allocations: 36.83 kB / 478.4 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.634e-05/0.3822, allocations: 11.94 kB / 478.5 MB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.3835, allocations: 1.507 MB / 480 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.57e-05/0.3836, allocations: 15.83 kB / 480 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.3836, allocations: 4.062 kB / 480 MB, free: 1.406 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 7.788e-05/0.3837, allocations: 112.9 kB / 480.1 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.3837, allocations: 7.906 kB / 480.1 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.3838, allocations: 12.62 kB / 480.1 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.3838, allocations: 0 / 480.1 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.72e-07/0.3838, allocations: 0 / 480.1 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3838, allocations: 3.984 kB / 480.1 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.384, allocations: 213.6 kB / 480.3 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.384, allocations: 0 / 480.3 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.855e-05/0.3841, allocations: 8 kB / 480.3 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001368/0.3842, allocations: 32.84 kB / 480.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3842, allocations: 7.984 kB / 480.4 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.3854, allocations: 1.503 MB / 481.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3854, allocations: 0 / 481.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.3857, allocations: 208.4 kB / 482.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.501e-05/0.3857, allocations: 89.08 kB / 482.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.3858, allocations: 3.938 kB / 482.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.3859, allocations: 19.8 kB / 482.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.577e-05/0.3859, allocations: 7.984 kB / 482.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.249e-06/0.3859, allocations: 0 / 482.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.956e-05/0.386, allocations: 115.2 kB / 482.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.386, allocations: 0 / 482.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003051/0.3863, allocations: 32 kB / 482.3 MB, free: 14.82 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 (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.0005263/0.3868, allocations: 0.7405 MB / 483.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003179/0.3872, allocations: 174.5 kB / 483.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3872, allocations: 4.125 kB / 483.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.3874, allocations: 150.6 kB / 483.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/0.3876, allocations: 13.45 kB / 483.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004995/0.3881, allocations: 184.5 kB / 483.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.3884, allocations: 0.716 MB / 484.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.599e-05/0.3885, allocations: 4.438 kB / 484.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.907e-05/0.3885, allocations: 35.42 kB / 484.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3885, allocations: 0 / 484.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01403/0.4026, allocations: 2.552 MB / 486.9 MB, free: 10.28 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/0.4028, allocations: 175.9 kB / 487.1 MB, free: 10.06 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.461/1.863, allocations: 0 / 487.1 MB, free: 10.06 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat