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.001255/0.001256, allocations: 181.2 kB / 16.38 MB, free: 5.762 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.462/1.462, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008731/0.0008731, allocations: 92.27 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003026, allocations: 19.94 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2966, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.4034, allocations: 78.6 MB / 480.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.4036, allocations: 71.95 kB / 480.3 MB, free: 1.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007337/0.411, allocations: 2.825 MB / 483.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.34e-06/0.411, allocations: 3.984 kB / 483.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.411, allocations: 4 kB / 483.1 MB, free: 14.93 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.0005162/0.4116, allocations: 431.1 kB / 483.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.4116, allocations: 8.031 kB / 483.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.312e-05/0.4117, allocations: 42.56 kB / 483.6 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.66e-05/0.4118, allocations: 19.8 kB / 483.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002233/0.412, allocations: 198.8 kB / 483.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.412, allocations: 8.234 kB / 483.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.412, allocations: 8 kB / 483.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.4123, allocations: 121.1 kB / 483.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.4123, allocations: 11.95 kB / 483.9 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.4123, allocations: 4 kB / 483.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.4123, allocations: 4 kB / 483.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.4125, allocations: 80.66 kB / 484 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000842/0.4134, allocations: 0.6057 MB / 484.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.4137, allocations: 94.61 kB / 484.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.4137, allocations: 4 kB / 484.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.4137, allocations: 34.52 kB / 484.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.4137, allocations: 0 / 484.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.000658/0.4144, allocations: 259.5 kB / 485 MB, free: 12.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.4145, allocations: 51.41 kB / 485 MB, free: 12.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.4146, allocations: 135.8 kB / 485.2 MB, free: 12.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.4146, allocations: 29.7 kB / 485.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.472e-05/0.4147, allocations: 123.9 kB / 485.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.4147, allocations: 27.73 kB / 485.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.4147, allocations: 3.938 kB / 485.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.4148, allocations: 318.8 kB / 485.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.713e-05/0.4149, allocations: 27.98 kB / 485.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.73e-05/0.415, allocations: 42.56 kB / 485.7 MB, free: 12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.11e-05/0.4151, allocations: 31.98 kB / 485.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.4151, allocations: 0 / 485.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002744/0.4153, allocations: 138.5 kB / 485.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.4154, allocations: 6.812 kB / 485.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.4154, allocations: 4.016 kB / 485.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001805/0.4156, allocations: 48.83 kB / 486 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.822e-05/0.4156, allocations: 11.98 kB / 486 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.4171, allocations: 1.525 MB / 487.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.387e-05/0.4172, allocations: 4 kB / 487.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.465e-06/0.4172, allocations: 0 / 487.5 MB, free: 10.09 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 0.0001206/0.4173, allocations: 133.8 kB / 487.6 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.4173, allocations: 7.906 kB / 487.6 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.3e-05/0.4174, allocations: 16.7 kB / 487.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.4174, allocations: 0 / 487.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.4174, allocations: 0 / 487.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.4174, allocations: 0 / 487.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002174/0.4176, allocations: 213.5 kB / 487.9 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.4176, allocations: 7.953 kB / 487.9 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.4177, allocations: 128 / 487.9 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000132/0.4178, allocations: 48.83 kB / 487.9 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.4178, allocations: 0 / 487.9 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.419, allocations: 1.518 MB / 489.4 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.419, allocations: 0 / 489.4 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.4193, allocations: 220.3 kB / 489.7 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.4194, allocations: 85.02 kB / 489.7 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.4194, allocations: 4.188 kB / 489.7 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.4195, allocations: 11.94 kB / 489.8 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.4195, allocations: 11.92 kB / 489.8 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.501e-06/0.4196, allocations: 192 / 489.8 MB, free: 7.594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.61e-05/0.4196, allocations: 114.2 kB / 489.9 MB, free: 7.484 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4196, allocations: 0 / 489.9 MB, free: 7.484 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003394/0.42, allocations: 47.84 kB / 489.9 MB, free: 7.438 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.0005578/0.4206, allocations: 0.7483 MB / 490.7 MB, free: 6.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003674/0.4209, allocations: 194.6 kB / 490.9 MB, free: 6.457 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.421, allocations: 0 / 490.9 MB, free: 6.457 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.4211, allocations: 154.7 kB / 491 MB, free: 6.293 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.4213, allocations: 12.12 kB / 491 MB, free: 6.281 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.4226, allocations: 1.108 MB / 492.1 MB, free: 5.105 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.4229, allocations: 0.7082 MB / 492.8 MB, free: 4.371 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.266e-05/0.423, allocations: 8.438 kB / 492.8 MB, free: 4.363 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.064e-05/0.423, allocations: 27.42 kB / 492.9 MB, free: 4.336 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.423, allocations: 0 / 492.9 MB, free: 4.336 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.4389, allocations: 2.557 MB / 495.4 MB, free: 1.926 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.4391, allocations: 206.5 kB / 495.6 MB, free: 1.691 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.708/2.147, allocations: 0 / 495.6 MB, free: 1.691 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