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.001216/0.001219, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001216/0.001216, allocations: 193.2 kB / 16.14 MB, free: 6.66 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.228/1.228, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.00735/0.00735, allocations: 1.238 MB / 291.2 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 63.89 kB / 351.7 MB, free: 7.082 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08015/0.08128, allocations: 49.7 MB / 401.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.003879/0.08519, allocations: 3.009 MB / 404.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.08711, allocations: 1.417 MB / 405.9 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.08724, allocations: 4 kB / 405.9 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004374/0.08769, allocations: 139.5 kB / 406 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.08794, allocations: 99.33 kB / 406.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005157/0.08847, allocations: 227.5 kB / 406.3 MB, free: 436 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003887/0.08886, allocations: 442.4 kB / 406.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.08905, allocations: 115.9 kB / 406.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.08924, allocations: 159.3 kB / 407 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.08947, allocations: 191.1 kB / 407.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.218e-05/0.08952, allocations: 28 kB / 407.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002896/0.08982, allocations: 211.6 kB / 407.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.27e-05/0.08992, allocations: 83.66 kB / 407.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.09008, allocations: 183 kB / 407.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004549/0.09054, allocations: 0.5099 MB / 408.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.09056, allocations: 4 kB / 408.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.09056, allocations: 0 / 408.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.09058, allocations: 0 / 408.2 MB, free: 14.52 MB / 350.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.001135/0.09172, allocations: 0.7014 MB / 408.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.09176, allocations: 8.031 kB / 408.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.886e-05/0.09183, allocations: 74.66 kB / 409 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.345e-05/0.0919, allocations: 40.47 kB / 409 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003625/0.09227, allocations: 324 kB / 409.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.09231, allocations: 29.03 kB / 409.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.09236, allocations: 28.38 kB / 409.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005797/0.09294, allocations: 302.2 kB / 409.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.09296, allocations: 0 / 409.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.908e-05/0.093, allocations: 16 kB / 409.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.09301, allocations: 11.98 kB / 409.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006233/0.09364, allocations: 274.5 kB / 410 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.09525, allocations: 1.17 MB / 411.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004199/0.09568, allocations: 202.5 kB / 411.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.09588, allocations: 80.77 kB / 411.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.83e-05/0.09594, allocations: 15.97 kB / 411.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.09597, allocations: 38.56 kB / 411.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.263e-06/0.09598, allocations: 0 / 411.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002744/0.09873, allocations: 0.9159 MB / 412.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.09878, allocations: 55.64 kB / 412.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.0991, allocations: 312.5 kB / 412.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.09914, allocations: 29.7 kB / 412.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.09929, allocations: 235.5 kB / 413 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.411e-05/0.09936, allocations: 94.64 kB / 413.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.09946, allocations: 73.97 kB / 413.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.0996, allocations: 338.8 kB / 413.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.09993, allocations: 124.7 kB / 413.7 MB, free: 8.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003604/0.1003, allocations: 221.1 kB / 413.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/0.101, allocations: 353.2 kB / 414.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.101, allocations: 0 / 414.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001275/0.1023, allocations: 0.6036 MB / 414.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1023, allocations: 4.344 kB / 414.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1023, allocations: 8 kB / 414.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.1041, allocations: 0.815 MB / 415.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/0.1044, allocations: 79.89 kB / 415.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006951/0.1051, allocations: 1.171 MB / 416.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.1054, allocations: 27.91 kB / 416.9 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.1054, allocations: 24.06 kB / 417 MB, free: 5.355 MB / 350.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.0001483/0.1056, allocations: 161.6 kB / 417.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.564e-05/0.1056, allocations: 31.62 kB / 417.1 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.1068, allocations: 0.5297 MB / 417.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1068, allocations: 4 kB / 417.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1068, allocations: 0 / 417.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1069, allocations: 3.984 kB / 417.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000382/0.1072, allocations: 377.4 kB / 418 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1072, allocations: 0 / 418 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.1075, allocations: 39.97 kB / 418.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001695/0.1092, allocations: 0.8137 MB / 418.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.1092, allocations: 12.12 kB / 418.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006408/0.1098, allocations: 1.175 MB / 420.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1099, allocations: 0 / 420.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.111, allocations: 0.5907 MB / 420.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.841e-05/0.1111, allocations: 112.7 kB / 420.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.1111, allocations: 4 kB / 420.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.1114, allocations: 15.98 kB / 420.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.463e-05/0.1114, allocations: 23.91 kB / 420.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.1115, allocations: 8 kB / 420.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002066/0.1117, allocations: 219.1 kB / 421.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1117, allocations: 0 / 421.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003972/0.1121, allocations: 100 kB / 421.2 MB, free: 0.9961 MB / 350.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.138/0.2501, allocations: 1.181 MB / 422.3 MB, free: 52.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.2512, allocations: 312.8 kB / 422.6 MB, free: 52.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2512, allocations: 0.5625 kB / 422.6 MB, free: 52.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.2517, allocations: 175.8 kB / 422.8 MB, free: 52.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.2521, allocations: 38.38 kB / 422.8 MB, free: 52.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004602/0.2568, allocations: 3.961 MB / 426.8 MB, free: 50.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.257, allocations: 0.7888 MB / 427.6 MB, free: 50.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.2571, allocations: 43.67 kB / 427.6 MB, free: 50.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.2572, allocations: 117.7 kB / 427.8 MB, free: 50.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2572, allocations: 0 / 427.8 MB, free: 50.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.273, allocations: 6.846 MB / 434.6 MB, free: 49.62 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001246/0.2732, allocations: 228.8 kB / 434.8 MB, free: 49.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.06, allocations: 4 kB / 434.8 MB, free: 49.36 MB / 350.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)