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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009195/0.0009196, allocations: 99.55 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002617/0.0002617, allocations: 8 kB / 306.8 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 51.48 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003581/0.1404, allocations: 2.568 MB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.1421, allocations: 0.7014 MB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003346/0.1425, allocations: 8 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002312/0.1427, allocations: 43.62 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003387/0.1431, allocations: 83.3 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.1435, allocations: 75.86 kB / 361.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005976/0.1441, allocations: 374.3 kB / 362.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.1443, allocations: 90.7 kB / 362.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003799/0.1447, allocations: 131.5 kB / 362.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.145, allocations: 139.4 kB / 362.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.367e-05/0.1451, allocations: 20 kB / 362.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.1452, allocations: 16 kB / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.888e-05/0.1453, allocations: 51.77 kB / 362.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1454, allocations: 89.52 kB / 362.7 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.1457, allocations: 287.4 kB / 363 MB, free: 9.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1457, allocations: 0 / 363 MB, free: 9.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1458, allocations: 0 / 363 MB, free: 9.074 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.1458, allocations: 0 / 363 MB, free: 9.074 MB / 302.1 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.001071/0.1468, allocations: 0.5924 MB / 363.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.1469, allocations: 8.031 kB / 363.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.147, allocations: 62.55 kB / 363.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/0.1473, allocations: 51.52 kB / 363.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.1477, allocations: 266.5 kB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.1478, allocations: 20.56 kB / 363.9 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/0.1478, allocations: 31.89 kB / 364 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006028/0.1484, allocations: 260.9 kB / 364.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1485, allocations: 0 / 364.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.1485, allocations: 12 kB / 364.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.1485, allocations: 12 kB / 364.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005566/0.1491, allocations: 226.1 kB / 364.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/0.1511, allocations: 1.007 MB / 365.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005802/0.1517, allocations: 313.9 kB / 365.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.152, allocations: 117.2 kB / 365.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.152, allocations: 4.188 kB / 365.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.1521, allocations: 34.73 kB / 365.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1521, allocations: 3.938 kB / 365.9 MB, free: 5.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001356/0.1534, allocations: 0.5931 MB / 366.5 MB, free: 5.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.1535, allocations: 55.41 kB / 366.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.1538, allocations: 246.6 kB / 366.8 MB, free: 4.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.1538, allocations: 33.7 kB / 366.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.154, allocations: 183.9 kB / 367 MB, free: 4.688 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.686e-05/0.154, allocations: 71.02 kB / 367.1 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.135e-05/0.154, allocations: 4 kB / 367.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1542, allocations: 330.8 kB / 367.4 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.1544, allocations: 84.42 kB / 367.5 MB, free: 4.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.1546, allocations: 115.5 kB / 367.6 MB, free: 4.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.1548, allocations: 88.64 kB / 367.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1548, allocations: 0 / 367.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006431/0.1555, allocations: 346.7 kB / 368.1 MB, free: 3.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.1555, allocations: 4 kB / 368.1 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.1555, allocations: 3.984 kB / 368.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002813/0.1558, allocations: 77.61 kB / 368.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.156, allocations: 43.97 kB / 368.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/0.1585, allocations: 2.831 MB / 371 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001825/0.1587, allocations: 39.88 kB / 371.1 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.1587, allocations: 8 kB / 371.1 MB, free: 376 kB / 302.1 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 (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.0002362/0.1589, allocations: 145.7 kB / 371.2 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.926e-05/0.159, allocations: 23.72 kB / 371.2 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.296e-05/0.159, allocations: 30.17 kB / 371.3 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.1591, allocations: 3.938 kB / 371.3 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.1591, allocations: 8 kB / 371.3 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1591, allocations: 0 / 371.3 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2229/0.382, allocations: 0.6849 MB / 372 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.382, allocations: 1.312 kB / 372 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.3822, allocations: 32.12 kB / 372 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002316/0.3824, allocations: 77.23 kB / 372.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3825, allocations: 5.75 kB / 372.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/0.3844, allocations: 2.818 MB / 374.9 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3844, allocations: 1.062 kB / 374.9 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006718/0.3851, allocations: 403.7 kB / 375.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.461e-05/0.3852, allocations: 107.8 kB / 375.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.229e-05/0.3853, allocations: 5.25 kB / 375.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002633/0.3855, allocations: 37.52 kB / 375.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.782e-05/0.3856, allocations: 20.72 kB / 375.5 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.3856, allocations: 8.234 kB / 375.5 MB, free: 16.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002146/0.3859, allocations: 183.6 kB / 375.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3859, allocations: 0 / 375.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004755/0.3864, allocations: 96.56 kB / 375.7 MB, free: 16.33 MB / 302.1 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 (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.0009544/0.3873, allocations: 0.9319 MB / 376.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008895/0.3882, allocations: 458.7 kB / 377.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3882, allocations: 2.344 kB / 377.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004687/0.3887, allocations: 359.9 kB / 377.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004816/0.3892, allocations: 44.86 kB / 377.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.3922, allocations: 1.549 MB / 379.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.3925, allocations: 0.7644 MB / 379.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.3927, allocations: 22.97 kB / 379.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.3928, allocations: 94.19 kB / 379.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3929, allocations: 0 / 379.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02167/0.4145, allocations: 5.697 MB / 385.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/0.4148, allocations: 212.8 kB / 385.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.05/2.465, allocations: 7.938 kB / 385.9 MB, free: 12.87 MB / 302.1 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