Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo", uses=false) Using package FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo) 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(FluxTubesExtension.Examples.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",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.0006372/0.0006372, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004599/0.004599, allocations: 173.9 kB / 16.27 MB, free: 6.652 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.25/1.25, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.01977/0.01977, allocations: 1.222 MB / 292.6 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002928, allocations: 4 kB / 354.2 MB, free: 1.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2524, allocations: 50.67 MB / 404.8 MB, free: 9.977 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.002915/0.2553, allocations: 2.645 MB / 407.5 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.2571, allocations: 1.39 MB / 408.9 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.2572, allocations: 4.875 kB / 408.9 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004178/0.2577, allocations: 140 kB / 409 MB, free: 8.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.2579, allocations: 88.42 kB / 409.1 MB, free: 7.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004943/0.2584, allocations: 235.9 kB / 409.3 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.2588, allocations: 456.4 kB / 409.8 MB, free: 7.613 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.259, allocations: 113.8 kB / 409.9 MB, free: 7.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.2592, allocations: 157.6 kB / 410 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.2594, allocations: 172.6 kB / 410.2 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.882e-05/0.2595, allocations: 20.59 kB / 410.2 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003014/0.2598, allocations: 203.5 kB / 410.4 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.2599, allocations: 82.33 kB / 410.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.26, allocations: 202.2 kB / 410.7 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005449/0.2606, allocations: 0.5073 MB / 411.2 MB, free: 6.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2606, allocations: 1.5 kB / 411.2 MB, free: 6.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2606, allocations: 3.938 kB / 411.2 MB, free: 6.977 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.2606, allocations: 0 / 411.2 MB, free: 6.977 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001052/0.2617, allocations: 0.6534 MB / 411.9 MB, free: 6.461 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.2617, allocations: 10.28 kB / 411.9 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.156e-05/0.2618, allocations: 68.19 kB / 411.9 MB, free: 6.402 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.581e-05/0.2619, allocations: 43.25 kB / 412 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.2622, allocations: 322.2 kB / 412.3 MB, free: 6.102 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.2622, allocations: 21.5 kB / 412.3 MB, free: 6.094 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.897e-05/0.2623, allocations: 33.25 kB / 412.4 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006037/0.2629, allocations: 313.6 kB / 412.7 MB, free: 5.953 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.2629, allocations: 0 / 412.7 MB, free: 5.953 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.847e-05/0.263, allocations: 19.16 kB / 412.7 MB, free: 5.938 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.263, allocations: 7.25 kB / 412.7 MB, free: 5.938 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006585/0.2636, allocations: 296.5 kB / 413 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.2652, allocations: 1.183 MB / 414.2 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.2656, allocations: 203.4 kB / 414.4 MB, free: 4.945 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.2659, allocations: 88.22 kB / 414.4 MB, free: 4.914 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.288e-05/0.2659, allocations: 14.11 kB / 414.5 MB, free: 4.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.417e-05/0.2659, allocations: 32.62 kB / 414.5 MB, free: 4.871 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.252e-06/0.2659, allocations: 0 / 414.5 MB, free: 4.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=27): time 0.002958/0.2689, allocations: 0.9751 MB / 415.5 MB, free: 4.578 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.803e-05/0.2689, allocations: 59.41 kB / 415.5 MB, free: 4.512 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.2693, allocations: 315.5 kB / 415.8 MB, free: 4.344 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.2693, allocations: 34.86 kB / 415.9 MB, free: 4.305 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.2694, allocations: 247.3 kB / 416.1 MB, free: 4.094 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.415e-05/0.2695, allocations: 91.33 kB / 416.2 MB, free: 4.023 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.512e-05/0.2695, allocations: 35.61 kB / 416.2 MB, free: 3.996 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.504e-05/0.2696, allocations: 348.5 kB / 416.6 MB, free: 3.664 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003323/0.2699, allocations: 131.5 kB / 416.7 MB, free: 3.625 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003553/0.2703, allocations: 229.8 kB / 416.9 MB, free: 3.469 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006481/0.271, allocations: 373.7 kB / 417.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.271, allocations: 2.922 kB / 417.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001317/0.2723, allocations: 0.6177 MB / 417.9 MB, free: 3.051 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2723, allocations: 7.469 kB / 417.9 MB, free: 3.051 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2723, allocations: 3 kB / 417.9 MB, free: 3.051 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/0.2742, allocations: 0.8227 MB / 418.7 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.2745, allocations: 76.58 kB / 418.8 MB, free: 2.961 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004993/0.275, allocations: 1.177 MB / 420 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.2753, allocations: 33.59 kB / 420 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.2753, allocations: 17.22 kB / 420 MB, free: 1.84 MB / 286.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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.2755, allocations: 157.6 kB / 420.2 MB, free: 1.695 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.2756, allocations: 34.81 kB / 420.2 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001234/0.2768, allocations: 0.5469 MB / 420.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2768, allocations: 2.812 kB / 420.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2768, allocations: 4 kB / 420.8 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2768, allocations: 5.594 kB / 420.8 MB, free: 1.484 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004064/0.2772, allocations: 380.8 kB / 421.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2773, allocations: 0 / 421.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.2775, allocations: 51.98 kB / 421.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/0.2792, allocations: 0.8084 MB / 422 MB, free: 1.062 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.2792, allocations: 4.938 kB / 422 MB, free: 1.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004724/0.2797, allocations: 1.176 MB / 423.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2797, allocations: 0 / 423.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.2809, allocations: 0.6198 MB / 423.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-05/0.281, allocations: 109.5 kB / 423.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.2811, allocations: 5.109 kB / 423.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.2813, allocations: 21.61 kB / 424 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.53e-05/0.2813, allocations: 23.31 kB / 424 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.2814, allocations: 5.469 kB / 424 MB, free: 15.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002207/0.2816, allocations: 224 kB / 424.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2816, allocations: 4 kB / 424.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004483/0.2821, allocations: 104.9 kB / 424.3 MB, free: 15.23 MB / 302.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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001546/0.2836, allocations: 1.184 MB / 425.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008564/0.2845, allocations: 344.7 kB / 425.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2845, allocations: 0 / 425.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004777/0.285, allocations: 185 kB / 426 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.2854, allocations: 45.7 kB / 426.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.2911, allocations: 4.053 MB / 430.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.2915, allocations: 0.7963 MB / 430.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00016/0.2916, allocations: 40.44 kB / 430.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.2918, allocations: 118.3 kB / 431.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2918, allocations: 1.438 kB / 431.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.3093, allocations: 6.709 MB / 437.8 MB, free: 5.488 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/0.3094, allocations: 233.1 kB / 438 MB, free: 5.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/2.112, allocations: 0 / 438 MB, free: 5.23 MB / 302.1 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe 2>&1)