Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002381/0.002386, allocations: 182.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.061/2.061, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001134, allocations: 91.34 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003894, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3324, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006297/0.3387, allocations: 4.405 MB / 379 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003687/0.3425, allocations: 1.447 MB / 380.5 MB, free: 40.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.3436, allocations: 27.12 kB / 380.5 MB, free: 40.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003632/0.344, allocations: 100.7 kB / 380.6 MB, free: 40.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001227/0.3453, allocations: 239.9 kB / 380.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001221/0.3465, allocations: 292.9 kB / 381.1 MB, free: 40.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002147/0.3487, allocations: 0.7633 MB / 381.9 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008038/0.3496, allocations: 349.6 kB / 382.2 MB, free: 39.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007163/0.3503, allocations: 308.8 kB / 382.5 MB, free: 39.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006031/0.3509, allocations: 357.4 kB / 382.9 MB, free: 39.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001724/0.3511, allocations: 40.09 kB / 382.9 MB, free: 39.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002805/0.3514, allocations: 54.75 kB / 383 MB, free: 39.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.3516, allocations: 153.9 kB / 383.1 MB, free: 38.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.3518, allocations: 202 kB / 383.3 MB, free: 38.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.3529, allocations: 0.7749 MB / 384.1 MB, free: 38.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3529, allocations: 1.156 kB / 384.1 MB, free: 38.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3529, allocations: 0 / 384.1 MB, free: 38.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.862e-05/0.353, allocations: 0 / 384.1 MB, free: 38.23 MB / 298.7 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.002587/0.3556, allocations: 1.125 MB / 385.2 MB, free: 37.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.3556, allocations: 9.406 kB / 385.2 MB, free: 37.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002911/0.3559, allocations: 152.7 kB / 385.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002821/0.3562, allocations: 127.8 kB / 385.5 MB, free: 37.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.3577, allocations: 0.5892 MB / 386.1 MB, free: 36.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.607e-05/0.3578, allocations: 81.2 kB / 386.2 MB, free: 36.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.358, allocations: 96.41 kB / 386.3 MB, free: 36.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002513/0.3605, allocations: 1.022 MB / 387.3 MB, free: 35.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.558e-05/0.3607, allocations: 7.125 kB / 387.3 MB, free: 35.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/0.3608, allocations: 43.38 kB / 387.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-05/0.3608, allocations: 26.31 kB / 387.4 MB, free: 35.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.3626, allocations: 0.556 MB / 387.9 MB, free: 35.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006141/0.3688, allocations: 5.525 MB / 393.4 MB, free: 29.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007778/0.3697, allocations: 240.9 kB / 393.7 MB, free: 29.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001678/0.3699, allocations: 92.98 kB / 393.8 MB, free: 29.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.3699, allocations: 38.56 kB / 393.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 3.387e-06/0.3699, allocations: 0 / 393.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.005531/0.3755, allocations: 1.736 MB / 395.5 MB, free: 27.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.3755, allocations: 81.11 kB / 395.6 MB, free: 27.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008666/0.3764, allocations: 0.6294 MB / 396.3 MB, free: 26.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.422e-05/0.3765, allocations: 33.7 kB / 396.3 MB, free: 26.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003418/0.3768, allocations: 0.6129 MB / 396.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.377, allocations: 142.1 kB / 397 MB, free: 25.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/0.377, allocations: 16 kB / 397.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.037e-05/0.3771, allocations: 338.8 kB / 397.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004932/0.3776, allocations: 161.9 kB / 397.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006268/0.3783, allocations: 0.4932 MB / 398 MB, free: 24.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006687/0.3789, allocations: 231.9 kB / 398.3 MB, free: 24.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.379, allocations: 4 kB / 398.3 MB, free: 24.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001592/0.3806, allocations: 0.6688 MB / 398.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.3806, allocations: 13.41 kB / 398.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.3807, allocations: 15.98 kB / 399 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.605e-05/0.3807, allocations: 16 kB / 399 MB, free: 23.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.3818, allocations: 196.2 kB / 399.2 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.786e-05/0.3818, allocations: 23.92 kB / 399.2 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006424/0.3825, allocations: 36 kB / 399.2 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.346e-05/0.3826, allocations: 43.98 kB / 399.3 MB, free: 23.27 MB / 298.7 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 (94): * Single equations (assignments): 94 * 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.0004528/0.383, allocations: 221.5 kB / 399.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.3832, allocations: 75.06 kB / 399.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.3834, allocations: 74.55 kB / 399.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.3834, allocations: 7.984 kB / 399.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3834, allocations: 7.938 kB / 399.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3834, allocations: 0 / 399.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.3862, allocations: 1.298 MB / 400.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3862, allocations: 0 / 400.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008908/0.3871, allocations: 103.9 kB / 401.1 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/0.3872, allocations: 8.031 kB / 401.1 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-05/0.3872, allocations: 11.98 kB / 401.1 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.3872, allocations: 3.938 kB / 401.1 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3872, allocations: 3.938 kB / 401.1 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.3888, allocations: 0.7242 MB / 401.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.389, allocations: 136.2 kB / 401.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.158e-05/0.3891, allocations: 8.031 kB / 401.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004918/0.3896, allocations: 31.98 kB / 402 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/0.3897, allocations: 19.91 kB / 402 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.57e-05/0.3898, allocations: 23.94 kB / 402 MB, free: 20.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006008/0.3904, allocations: 415 kB / 402.4 MB, free: 20 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3904, allocations: 0 / 402.4 MB, free: 20 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001008/0.3914, allocations: 140 kB / 402.6 MB, free: 19.86 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 38 * 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.00175/0.3932, allocations: 1.395 MB / 404 MB, free: 18.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.3944, allocations: 442.2 kB / 404.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.872e-06/0.3945, allocations: 0 / 404.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004628/0.3949, allocations: 155.8 kB / 404.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000606/0.3956, allocations: 76.33 kB / 404.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.406, allocations: 12.47 MB / 417.1 MB, free: 4.949 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.4066, allocations: 1.031 MB / 418.1 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007012/0.4073, allocations: 391.3 kB / 418.5 MB, free: 3.508 MB / 298.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4073, allocations: 0 / 418.5 MB, free: 3.508 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.63/3.037, allocations: 12.74 MB / 431.2 MB, free: 6.762 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat