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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001665, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001129/0.001129, allocations: 89.53 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.807e-05/3.81e-05, allocations: 4 kB / 350.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1178, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3462/0.464, allocations: 79.56 MB / 481.7 MB, free: 9.895 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/0.4644, allocations: 75.83 kB / 481.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01277/0.4772, allocations: 5.246 MB / 487 MB, free: 5.418 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4772, allocations: 0 / 487 MB, free: 5.418 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.699e-05/0.4773, allocations: 4 kB / 487 MB, free: 5.414 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.0008636/0.4781, allocations: 0.5629 MB / 487.6 MB, free: 4.828 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.4782, allocations: 8.031 kB / 487.6 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.195e-05/0.4783, allocations: 67.17 kB / 487.6 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.4785, allocations: 51.52 kB / 487.7 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.4788, allocations: 274.3 kB / 488 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.4788, allocations: 16.44 kB / 488 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.4789, allocations: 31.23 kB / 488 MB, free: 4.402 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003885/0.4793, allocations: 233.1 kB / 488.2 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.4793, allocations: 0 / 488.2 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.4793, allocations: 15.06 kB / 488.2 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.4794, allocations: 8 kB / 488.3 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.4796, allocations: 175.5 kB / 488.4 MB, free: 4.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.4811, allocations: 0.992 MB / 489.4 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.4814, allocations: 203.4 kB / 489.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.4816, allocations: 108.5 kB / 489.7 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.4816, allocations: 4.188 kB / 489.7 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.4816, allocations: 34.38 kB / 489.8 MB, free: 2.984 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.4817, allocations: 0 / 489.8 MB, free: 2.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004765/0.4821, allocations: 242.8 kB / 490 MB, free: 2.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.354e-05/0.4822, allocations: 59.41 kB / 490.1 MB, free: 2.719 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.4824, allocations: 224.1 kB / 490.3 MB, free: 2.531 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.4824, allocations: 29.39 kB / 490.3 MB, free: 2.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.568e-05/0.4825, allocations: 188.1 kB / 490.5 MB, free: 2.348 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.4825, allocations: 73.53 kB / 490.6 MB, free: 2.285 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.4825, allocations: 4 kB / 490.6 MB, free: 2.281 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.014e-05/0.4826, allocations: 333.6 kB / 490.9 MB, free: 1.957 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.375e-05/0.4827, allocations: 58.41 kB / 490.9 MB, free: 1.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.4828, allocations: 89.89 kB / 491 MB, free: 1.852 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.4829, allocations: 62.66 kB / 491.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4829, allocations: 3.953 kB / 491.1 MB, free: 1.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004103/0.4833, allocations: 297.7 kB / 491.4 MB, free: 1.574 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.4834, allocations: 4 kB / 491.4 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4834, allocations: 0 / 491.4 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/0.4836, allocations: 70.61 kB / 491.5 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.4838, allocations: 40.36 kB / 491.5 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/0.4857, allocations: 2.839 MB / 494.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.4859, allocations: 27.84 kB / 494.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.4859, allocations: 15.98 kB / 494.4 MB, free: 14.42 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 () * 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 0.0001168/0.486, allocations: 122 kB / 494.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.404e-05/0.4861, allocations: 27.72 kB / 494.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/0.4862, allocations: 25.95 kB / 494.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.4862, allocations: 6.344 kB / 494.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4862, allocations: 0 / 494.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4862, allocations: 0.625 kB / 494.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000817/0.487, allocations: 0.652 MB / 495.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.487, allocations: 0 / 495.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.4872, allocations: 27.98 kB / 495.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001905/0.4874, allocations: 74.98 kB / 495.3 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.4874, allocations: 4 kB / 495.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001989/0.4894, allocations: 2.828 MB / 498.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4894, allocations: 0 / 498.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004413/0.4899, allocations: 343.8 kB / 498.5 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.14e-05/0.49, allocations: 108.8 kB / 498.6 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.49, allocations: 4.75 kB / 498.6 MB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.4903, allocations: 35.97 kB / 498.6 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.368e-05/0.4904, allocations: 23.91 kB / 498.7 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.4904, allocations: 8 kB / 498.7 MB, free: 9.781 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001659/0.4906, allocations: 183.1 kB / 498.8 MB, free: 9.602 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4906, allocations: 0 / 498.8 MB, free: 9.602 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003664/0.4909, allocations: 95.84 kB / 498.9 MB, free: 9.508 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.0007296/0.4917, allocations: 0.8816 MB / 499.8 MB, free: 8.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006015/0.4923, allocations: 408.2 kB / 0.4885 GB, free: 8.168 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4923, allocations: 4.125 kB / 0.4885 GB, free: 8.164 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003301/0.4926, allocations: 329.1 kB / 0.4888 GB, free: 7.816 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.4929, allocations: 46.12 kB / 0.4888 GB, free: 7.777 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007463/0.4937, allocations: 390.5 kB / 0.4892 GB, free: 7.363 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.494, allocations: 0.7716 MB / 0.49 GB, free: 6.562 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.4942, allocations: 22.08 kB / 0.49 GB, free: 6.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.4943, allocations: 87.41 kB / 0.4901 GB, free: 6.457 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4943, allocations: 0 / 0.4901 GB, free: 6.457 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.5121, allocations: 5.64 MB / 0.4956 GB, free: 1.078 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002658/0.5124, allocations: 182.3 kB / 0.4958 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/2.401, allocations: 0 / 0.4958 GB, free: 0.8516 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