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.001224/0.001224, allocations: 95.31 kB / 16.98 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.001527/0.001527, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.00023, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1025, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator): time 0.002797/0.1053, allocations: 2.372 MB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.1067, allocations: 0.7563 MB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.107, allocations: 4 kB / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.1071, allocations: 51.61 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003553/0.1075, allocations: 123.6 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.1078, allocations: 91.88 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004712/0.1083, allocations: 263.4 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.1086, allocations: 105.8 kB / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.1088, allocations: 127.5 kB / 362.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.1091, allocations: 143.4 kB / 362.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.091e-05/0.1091, allocations: 20 kB / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.84e-05/0.1092, allocations: 16 kB / 362.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.481e-05/0.1093, allocations: 55.75 kB / 362.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.226e-05/0.1094, allocations: 81.52 kB / 362.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002557/0.1097, allocations: 271.4 kB / 362.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1097, allocations: 0 / 362.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1097, allocations: 0 / 362.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.1097, allocations: 4 kB / 362.7 MB, free: 9.293 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.001049/0.1108, allocations: 0.5964 MB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.1108, allocations: 8.031 kB / 363.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.1109, allocations: 62.53 kB / 363.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.92e-05/0.111, allocations: 35.62 kB / 363.4 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004256/0.1115, allocations: 282.4 kB / 363.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.067e-05/0.1115, allocations: 20.66 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.1116, allocations: 32 kB / 363.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006739/0.1123, allocations: 345 kB / 364 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1123, allocations: 0 / 364 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.1123, allocations: 15.98 kB / 364.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.1123, allocations: 8 kB / 364.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007022/0.113, allocations: 286.5 kB / 364.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.115, allocations: 1.19 MB / 365.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009426/0.116, allocations: 319.7 kB / 365.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.116, allocations: 7.953 kB / 365.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.1161, allocations: 42.5 kB / 365.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.222e-06/0.1161, allocations: 4 kB / 365.9 MB, free: 5.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.002686/0.1188, allocations: 0.8819 MB / 366.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.1189, allocations: 55.36 kB / 366.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.1192, allocations: 270.6 kB / 367.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.1192, allocations: 37.62 kB / 367.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.1194, allocations: 203.8 kB / 367.3 MB, free: 4.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.456e-05/0.1195, allocations: 63.09 kB / 367.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.667e-05/0.1195, allocations: 12 kB / 367.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1196, allocations: 330.8 kB / 367.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/0.1199, allocations: 103.9 kB / 367.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003132/0.1202, allocations: 195.8 kB / 368 MB, free: 3.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003085/0.1205, allocations: 127 kB / 368.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.1205, allocations: 0 / 368.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001413/0.122, allocations: 0.5455 MB / 368.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006499/0.1226, allocations: 1.225 MB / 369.9 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1226, allocations: 0 / 369.9 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006284/0.1233, allocations: 145.6 kB / 370.1 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.1235, allocations: 59.91 kB / 370.1 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2017/0.3252, allocations: 3.35 MB / 373.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.3255, allocations: 49.02 kB / 373.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.3256, allocations: 18.41 kB / 373.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.687e-06/0.3256, allocations: 3.344 kB / 373.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008917/0.3265, allocations: 374.7 kB / 373.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3265, allocations: 6.078 kB / 373.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00029/0.3268, allocations: 91.89 kB / 374 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.327, allocations: 56.38 kB / 374 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002576/0.3296, allocations: 2.977 MB / 377 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.3299, allocations: 34.64 kB / 377.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.3299, allocations: 14.28 kB / 377.1 MB, free: 14.62 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 (31): * Single equations (assignments): 29 * 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 4,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001894/0.3301, allocations: 224.9 kB / 377.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.246e-05/0.3302, allocations: 24.38 kB / 377.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.185e-05/0.3302, allocations: 34.89 kB / 377.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3302, allocations: 1.875 kB / 377.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3302, allocations: 0.75 kB / 377.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3303, allocations: 1.594 kB / 377.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004336/0.3307, allocations: 329.2 kB / 377.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3307, allocations: 1.938 kB / 377.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.3309, allocations: 26.62 kB / 377.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005518/0.3314, allocations: 143.2 kB / 377.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.3315, allocations: 5.562 kB / 377.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003896/0.3354, allocations: 3.227 MB / 381.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3354, allocations: 0 / 381.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.3369, allocations: 0.6397 MB / 381.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.059e-05/0.3369, allocations: 108.4 kB / 381.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.936e-05/0.337, allocations: 1.156 kB / 381.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.3372, allocations: 35.11 kB / 381.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.429e-05/0.3373, allocations: 20.36 kB / 381.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.3373, allocations: 8.406 kB / 381.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.3375, allocations: 194.4 kB / 382.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3375, allocations: 4 kB / 382.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007554/0.3383, allocations: 153.4 kB / 382.2 MB, free: 11.25 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 (14): * Single equations (assignments): 12 * 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 4,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001777/0.3401, allocations: 1.179 MB / 383.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.3414, allocations: 0.8363 MB / 384.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3414, allocations: 1.062 kB / 384.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004212/0.3418, allocations: 350.3 kB / 384.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.3421, allocations: 44.95 kB / 384.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/0.3459, allocations: 3.904 MB / 388.5 MB, free: 6.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.3462, allocations: 0.7748 MB / 389.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000144/0.3463, allocations: 34.03 kB / 389.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3464, allocations: 84.05 kB / 389.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3464, allocations: 0 / 389.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.3671, allocations: 6.706 MB / 396.1 MB, free: 4.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001369/0.3673, allocations: 224.2 kB / 396.4 MB, free: 3.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.277, allocations: 0 / 396.4 MB, free: 3.941 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