Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009414/0.0009414, allocations: 89.56 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 182.6 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002809/0.000281, allocations: 4 kB / 300.9 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1257, allocations: 50.42 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005106/0.1309, allocations: 4.607 MB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002632/0.1335, allocations: 1.384 MB / 357.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005295/0.1341, allocations: 23.88 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003851/0.1345, allocations: 154.6 kB / 357.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004622/0.135, allocations: 146.7 kB / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006949/0.1357, allocations: 295.6 kB / 357.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009607/0.1366, allocations: 1.001 MB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005334/0.1372, allocations: 342.3 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/0.1376, allocations: 314.5 kB / 359.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.1379, allocations: 357.9 kB / 359.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.455e-05/0.138, allocations: 40 kB / 360 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.1382, allocations: 48 kB / 360 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.1383, allocations: 167.1 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.1385, allocations: 193.1 kB / 360.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006367/0.1391, allocations: 0.7793 MB / 361.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1391, allocations: 3.938 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1391, allocations: 0 / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1391, allocations: 0 / 361.1 MB, free: 10.02 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001651/0.1408, allocations: 1.134 MB / 362.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.1409, allocations: 8.031 kB / 362.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001635/0.141, allocations: 152.2 kB / 362.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.1412, allocations: 130.4 kB / 362.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008255/0.142, allocations: 0.584 MB / 363.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.246e-05/0.1421, allocations: 78 kB / 363.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1422, allocations: 103.9 kB / 363.3 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.1439, allocations: 1.023 MB / 364.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.1439, allocations: 7.938 kB / 364.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.444e-05/0.144, allocations: 44 kB / 364.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.144, allocations: 31.95 kB / 364.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.1451, allocations: 0.5539 MB / 365 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005138/0.1502, allocations: 5.528 MB / 370.5 MB, free: 144 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2336/0.3839, allocations: 228.5 kB / 370.7 MB, free: 24.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004868/0.3844, allocations: 162.5 kB / 370.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001518/0.3846, allocations: 85.42 kB / 371 MB, free: 24.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.3846, allocations: 38.23 kB / 371 MB, free: 24.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.306e-06/0.3846, allocations: 0 / 371 MB, free: 24.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004736/0.3894, allocations: 1.779 MB / 372.8 MB, free: 23.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.3894, allocations: 81.38 kB / 372.9 MB, free: 23.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000921/0.3904, allocations: 0.6286 MB / 373.5 MB, free: 23.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.3904, allocations: 30.55 kB / 373.5 MB, free: 23.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004895/0.3909, allocations: 0.5968 MB / 374.1 MB, free: 23.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/0.3911, allocations: 150.6 kB / 374.3 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.006e-05/0.3911, allocations: 17.66 kB / 374.3 MB, free: 23.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.3913, allocations: 384 kB / 374.7 MB, free: 22.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.3917, allocations: 162.7 kB / 374.8 MB, free: 22.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.3922, allocations: 0.4947 MB / 375.3 MB, free: 22.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.3926, allocations: 232.9 kB / 375.5 MB, free: 22.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.3927, allocations: 4.297 kB / 375.6 MB, free: 22.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001234/0.3939, allocations: 0.7257 MB / 376.3 MB, free: 22.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.3939, allocations: 11.34 kB / 376.3 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.394, allocations: 11.66 kB / 376.3 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.36e-05/0.394, allocations: 17.38 kB / 376.3 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006553/0.3947, allocations: 207.8 kB / 376.5 MB, free: 22.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.232e-05/0.3947, allocations: 23.31 kB / 376.5 MB, free: 22.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.3951, allocations: 39.64 kB / 376.6 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-05/0.3951, allocations: 37.81 kB / 376.6 MB, free: 22.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003188/0.3955, allocations: 226.2 kB / 376.8 MB, free: 21.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.3956, allocations: 74.97 kB / 376.9 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.3957, allocations: 77.77 kB / 377 MB, free: 21.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3957, allocations: 4.562 kB / 377 MB, free: 21.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/0.3958, allocations: 9.297 kB / 377 MB, free: 21.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.3958, allocations: 2.812 kB / 377 MB, free: 21.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.3984, allocations: 1.351 MB / 378.4 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.525e-06/0.3984, allocations: 6.984 kB / 378.4 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005075/0.3989, allocations: 117.8 kB / 378.5 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.3989, allocations: 3.781 kB / 378.5 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.241e-05/0.399, allocations: 9.266 kB / 378.5 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/0.399, allocations: 4.766 kB / 378.5 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.399, allocations: 9.438 kB / 378.5 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.4, allocations: 0.7222 MB / 379.2 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.4001, allocations: 138.9 kB / 379.4 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.969e-05/0.4002, allocations: 11.62 kB / 379.4 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.4005, allocations: 30.09 kB / 379.4 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.954e-05/0.4006, allocations: 34.78 kB / 379.4 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.4006, allocations: 15.64 kB / 379.5 MB, free: 20.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005408/0.4011, allocations: 411.9 kB / 379.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4012, allocations: 0.9688 kB / 379.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007578/0.4019, allocations: 140.2 kB / 380 MB, free: 20.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001145/0.4031, allocations: 1.267 MB / 381.3 MB, free: 19.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009056/0.404, allocations: 451.1 kB / 381.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.404, allocations: 1.406 kB / 381.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.4043, allocations: 165.5 kB / 381.9 MB, free: 19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005793/0.4049, allocations: 74.5 kB / 381.9 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007107/0.412, allocations: 4.666 MB / 386.6 MB, free: 16.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006352/0.4127, allocations: 1.004 MB / 387.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004025/0.4131, allocations: 96.55 kB / 387.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000433/0.4135, allocations: 389.3 kB / 388.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4136, allocations: 0 / 388.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03624/0.4498, allocations: 11.47 MB / 399.5 MB, free: 8.012 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.4501, allocations: 204.1 kB / 399.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.189/2.639, allocations: 0 / 399.7 MB, free: 7.762 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat