Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestGyrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.Electrical.Analog.TestGyrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestGyrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestGyrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestGyrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001631/0.001631, allocations: 119 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0018/0.0018, allocations: 204.7 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2349/0.2349, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002323/0.002323, allocations: 83.86 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3418, allocations: 62.44 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestGyrator): time 0.003068/0.3449, allocations: 1.729 MB / 0.5323 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001891/0.3451, allocations: 72.61 kB / 0.5323 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.759e-05/0.3452, allocations: 1.656 kB / 0.5323 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.933e-05/0.3453, allocations: 17.27 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.798e-05/0.3454, allocations: 31.14 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001145/0.3455, allocations: 22.34 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.3456, allocations: 104.1 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.3458, allocations: 61.02 kB / 0.5326 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.609e-05/0.3459, allocations: 43.47 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.676e-05/0.346, allocations: 47.84 kB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.346, allocations: 10.25 kB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.696e-05/0.346, allocations: 12.62 kB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.81e-05/0.3461, allocations: 18.2 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.699e-05/0.3461, allocations: 51.89 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.3463, allocations: 118.7 kB / 0.5329 GB, free: 11.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.3463, allocations: 3.984 kB / 0.5329 GB, free: 11.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3463, allocations: 4 kB / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.3463, allocations: 0 / 0.5329 GB, free: 11.6 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005368/0.3469, allocations: 397.5 kB / 0.5332 GB, free: 11.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3469, allocations: 9.625 kB / 0.5332 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.437e-05/0.347, allocations: 46.86 kB / 0.5333 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.35e-05/0.347, allocations: 14.34 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.3472, allocations: 171 kB / 0.5335 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.3472, allocations: 10.11 kB / 0.5335 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.3472, allocations: 15.23 kB / 0.5335 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.3475, allocations: 134.8 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3475, allocations: 5.312 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.3475, allocations: 1.375 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3475, allocations: 2.75 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.3476, allocations: 72.91 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009376/0.3486, allocations: 0.7271 MB / 0.5344 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/0.3487, allocations: 166.3 kB / 0.5346 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.5e-05/0.3488, allocations: 80.14 kB / 0.5346 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.3488, allocations: 76.59 kB / 0.5347 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.492e-05/0.3489, allocations: 109.8 kB / 0.5348 GB, free: 9.605 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.232e-06/0.3489, allocations: 1.156 kB / 0.5348 GB, free: 9.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.144e-05/0.349, allocations: 32.11 kB / 0.5349 GB, free: 9.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/0.3491, allocations: 131.8 kB / 0.535 GB, free: 9.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.3492, allocations: 155.7 kB / 0.5351 GB, free: 9.297 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.3493, allocations: 25.7 kB / 0.5352 GB, free: 9.266 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.353e-05/0.3494, allocations: 126.2 kB / 0.5353 GB, free: 9.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.887e-06/0.3494, allocations: 4.656 kB / 0.5353 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/0.3494, allocations: 22.27 kB / 0.5353 GB, free: 9.117 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3496, allocations: 321 kB / 0.5356 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.304e-05/0.3496, allocations: 11.44 kB / 0.5356 GB, free: 8.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.484e-05/0.3497, allocations: 48.02 kB / 0.5357 GB, free: 8.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.106e-05/0.3498, allocations: 59.31 kB / 0.5357 GB, free: 8.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3498, allocations: 1.219 kB / 0.5357 GB, free: 8.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001493/0.3499, allocations: 74.81 kB / 0.5358 GB, free: 8.609 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3499, allocations: 4.812 kB / 0.5358 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.35, allocations: 2.594 kB / 0.5358 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.35, allocations: 0.9688 kB / 0.5358 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.914e-05/0.35, allocations: 9.875 kB / 0.5358 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.053e-05/0.3501, allocations: 5.172 kB / 0.5358 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.585e-05/0.3501, allocations: 11.39 kB / 0.5358 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.3501, allocations: 3.406 kB / 0.5358 GB, free: 8.598 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.3503, allocations: 197.7 kB / 0.536 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.137e-05/0.3504, allocations: 108.2 kB / 0.5361 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.286e-05/0.3504, allocations: 120 kB / 0.5362 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-05/0.3505, allocations: 180.2 kB / 0.5364 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-05/0.3506, allocations: 177.4 kB / 0.5366 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.809e-05/0.3507, allocations: 193.3 kB / 0.5368 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003008/0.351, allocations: 438 kB / 0.5372 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.256e-05/0.3511, allocations: 101 kB / 0.5373 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.606e-05/0.3511, allocations: 106.1 kB / 0.5374 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.842e-05/0.3512, allocations: 181.6 kB / 0.5375 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.487e-05/0.3513, allocations: 185.4 kB / 0.5377 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-05/0.3514, allocations: 181.5 kB / 0.5379 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.473e-05/0.3514, allocations: 181.3 kB / 0.5381 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.3516, allocations: 313.1 kB / 0.5384 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.789e-05/0.3517, allocations: 192.8 kB / 0.5386 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.412e-05/0.3518, allocations: 181.7 kB / 0.5387 GB, free: 5.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.3519, allocations: 104.9 kB / 0.5388 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.581e-05/0.352, allocations: 181.7 kB / 0.539 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.614e-05/0.3521, allocations: 106.5 kB / 0.5391 GB, free: 5.066 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.438e-05/0.3521, allocations: 109.1 kB / 0.5392 GB, free: 4.977 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.803e-06/0.3521, allocations: 0 / 0.5392 GB, free: 4.977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002335/0.3524, allocations: 21.16 kB / 0.5392 GB, free: 4.969 MB / 398.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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004402/0.3528, allocations: 0.8193 MB / 0.54 GB, free: 4.145 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.602e-05/0.3529, allocations: 19.78 kB / 0.54 GB, free: 4.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3529, allocations: 0 / 0.54 GB, free: 4.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.303e-06/0.3529, allocations: 384 / 0.54 GB, free: 4.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.3533, allocations: 471 kB / 0.5405 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.3548, allocations: 1.584 MB / 0.542 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.3552, allocations: 0.6993 MB / 0.5427 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.385e-05/0.3552, allocations: 2.75 kB / 0.5427 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.701e-05/0.3553, allocations: 28.73 kB / 0.5428 GB, free: 1.406 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3553, allocations: 1.375 kB / 0.5428 GB, free: 1.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.3769, allocations: 1.622 MB / 0.5443 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.027/8.403, allocations: 3.188 kB / 0.5443 GB, free: 0.5273 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestGyrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestGyrator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestGyrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1)