Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.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.OpAmps.SignalGenerator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008686/0.0008686, allocations: 98.12 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009983/0.0009983, allocations: 192 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.534/1.534, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002288/0.0002288, allocations: 8 kB / 306.8 MB, free: 1.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1338, allocations: 51.49 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator): time 0.003373/0.1373, allocations: 2.501 MB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.1392, allocations: 0.7443 MB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003351/0.1396, allocations: 11.94 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000235/0.1398, allocations: 47.67 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.1401, allocations: 87.3 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.1405, allocations: 83.89 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00052/0.141, allocations: 370.3 kB / 362.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.1413, allocations: 101.8 kB / 362.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002402/0.1415, allocations: 123.5 kB / 362.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.1418, allocations: 147.3 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-05/0.1419, allocations: 16 kB / 362.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.315e-05/0.1419, allocations: 16 kB / 362.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.717e-05/0.142, allocations: 59.75 kB / 362.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.1421, allocations: 81.52 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.1424, allocations: 279.4 kB / 363 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.1424, allocations: 4 kB / 363 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1424, allocations: 0 / 363 MB, free: 9.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1424, allocations: 0 / 363 MB, free: 9.273 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.001022/0.1435, allocations: 0.5835 MB / 363.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.1435, allocations: 12.03 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.593e-05/0.1436, allocations: 62.53 kB / 363.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.866e-05/0.1437, allocations: 35.62 kB / 363.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.1441, allocations: 282.4 kB / 363.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.1442, allocations: 20.66 kB / 364 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.74e-05/0.1442, allocations: 36 kB / 364 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006966/0.1449, allocations: 348.9 kB / 364.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.145, allocations: 0 / 364.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.145, allocations: 8 kB / 364.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.145, allocations: 11.98 kB / 364.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006808/0.1457, allocations: 294.5 kB / 364.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.1477, allocations: 1.198 MB / 365.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008565/0.1486, allocations: 314.7 kB / 366.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004264/0.149, allocations: 172.8 kB / 366.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1491, allocations: 4 kB / 366.3 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.1491, allocations: 34.55 kB / 366.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.533e-06/0.1491, allocations: 0 / 366.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.002497/0.1516, allocations: 0.9107 MB / 367.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.1517, allocations: 55.41 kB / 367.3 MB, free: 4.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003022/0.152, allocations: 270.6 kB / 367.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.152, allocations: 25.7 kB / 367.6 MB, free: 4.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/0.1522, allocations: 215.8 kB / 367.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.788e-05/0.1523, allocations: 67.03 kB / 367.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.1523, allocations: 8 kB / 367.9 MB, free: 4.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1525, allocations: 334.8 kB / 368.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.1527, allocations: 99.94 kB / 368.3 MB, free: 3.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003052/0.153, allocations: 191.8 kB / 368.5 MB, free: 3.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.1533, allocations: 129 kB / 368.6 MB, free: 3.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.1533, allocations: 4 kB / 368.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001355/0.1547, allocations: 0.5566 MB / 369.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001565/0.1549, allocations: 184.2 kB / 369.4 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.1549, allocations: 4 kB / 369.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006082/0.1555, allocations: 153.6 kB / 369.5 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.1557, allocations: 55.92 kB / 369.6 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2422/0.3979, allocations: 3.464 MB / 373 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.3983, allocations: 50.2 kB / 373.1 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.3983, allocations: 14.31 kB / 373.1 MB, free: 17.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/0.3983, allocations: 4.453 kB / 373.1 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009062/0.3992, allocations: 369.4 kB / 373.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3993, allocations: 3.781 kB / 373.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002899/0.3995, allocations: 91.14 kB / 373.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.3998, allocations: 65.73 kB / 373.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.4021, allocations: 2.817 MB / 376.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.4024, allocations: 36.02 kB / 376.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.4024, allocations: 14.34 kB / 376.5 MB, free: 15.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (30): * Single equations (assignments): 28 * 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: 0 * Non-linear torn systems: 2 {1 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001735/0.4026, allocations: 218.5 kB / 376.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.4026, allocations: 27 kB / 376.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.895e-05/0.4027, allocations: 35.62 kB / 376.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.4027, allocations: 2.344 kB / 376.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4027, allocations: 4.734 kB / 376.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.4027, allocations: 7.141 kB / 376.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.4045, allocations: 0.8428 MB / 377.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4045, allocations: 0 / 377.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.4046, allocations: 24.2 kB / 377.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004618/0.4051, allocations: 147.3 kB / 377.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.4051, allocations: 8.578 kB / 377.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003491/0.4086, allocations: 3.232 MB / 381 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4086, allocations: 7.609 kB / 381 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.4102, allocations: 0.6397 MB / 381.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/0.4103, allocations: 105.5 kB / 381.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.4104, allocations: 8.156 kB / 381.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.4106, allocations: 30.95 kB / 381.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.4107, allocations: 22 kB / 381.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.4107, allocations: 8.219 kB / 381.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002029/0.4109, allocations: 195.1 kB / 382 MB, free: 11.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4109, allocations: 0.9688 kB / 382 MB, free: 11.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007765/0.4117, allocations: 159.6 kB / 382.2 MB, free: 11.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * 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: 0 * Non-linear torn systems: 2 {1 5,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001733/0.4134, allocations: 1.178 MB / 383.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.4151, allocations: 0.9202 MB / 384.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4151, allocations: 0 / 384.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004561/0.4156, allocations: 357.8 kB / 384.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004596/0.4161, allocations: 44.22 kB / 384.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.4199, allocations: 1.961 MB / 386.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.4202, allocations: 0.7687 MB / 387.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.4204, allocations: 35.48 kB / 387.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.4205, allocations: 82.94 kB / 387.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4205, allocations: 1.188 kB / 387.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.4447, allocations: 6.829 MB / 394.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002951/0.4451, allocations: 227.6 kB / 394.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.405, allocations: 0 / 394.6 MB, free: 6.348 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat does not exist to compare? outputFormat=mat