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.001757/0.001757, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00297/0.00297, allocations: 198.2 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.05/2.05, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009973/0.009973, allocations: 1.238 MB / 291.6 MB, free: 1.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 63.89 kB / 352.4 MB, free: 1.641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6233/0.625, allocations: 49.69 MB / 402.1 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.006787/0.6319, allocations: 2.974 MB / 405.1 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003783/0.6357, allocations: 1.405 MB / 406.5 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002477/0.636, allocations: 4.906 kB / 406.5 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000672/0.6367, allocations: 145.5 kB / 406.7 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004355/0.6371, allocations: 118.7 kB / 406.8 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009107/0.6381, allocations: 269.3 kB / 407 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000617/0.6387, allocations: 432.9 kB / 407.5 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00033/0.639, allocations: 143 kB / 407.6 MB, free: 7.062 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003579/0.6394, allocations: 172.5 kB / 407.8 MB, free: 6.977 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004018/0.6398, allocations: 194 kB / 408 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.069e-05/0.6399, allocations: 35.72 kB / 408 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004931/0.6404, allocations: 207.8 kB / 408.2 MB, free: 6.812 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.6406, allocations: 98.42 kB / 408.3 MB, free: 6.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002834/0.6409, allocations: 193.6 kB / 408.5 MB, free: 6.629 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001242/0.6422, allocations: 0.5189 MB / 409 MB, free: 6.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.6422, allocations: 0 / 409 MB, free: 6.418 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.6422, allocations: 1.156 kB / 409 MB, free: 6.418 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.959e-05/0.6422, allocations: 0 / 409 MB, free: 6.418 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.001831/0.6441, allocations: 0.7014 MB / 409.7 MB, free: 5.863 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.417e-05/0.6442, allocations: 14.33 kB / 409.7 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001334/0.6443, allocations: 68.72 kB / 409.8 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.6444, allocations: 39.53 kB / 409.8 MB, free: 5.781 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006659/0.6451, allocations: 322.1 kB / 410.1 MB, free: 5.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.642e-05/0.6452, allocations: 26.03 kB / 410.2 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.581e-05/0.6453, allocations: 28.88 kB / 410.2 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009508/0.6463, allocations: 313.8 kB / 410.5 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.6463, allocations: 0 / 410.5 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.902e-05/0.6463, allocations: 11.5 kB / 410.5 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.6464, allocations: 7.75 kB / 410.5 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008957/0.6473, allocations: 271.3 kB / 410.8 MB, free: 5.258 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.6501, allocations: 1.171 MB / 412 MB, free: 4.434 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006938/0.6508, allocations: 200 kB / 412.1 MB, free: 4.355 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003101/0.6511, allocations: 91.86 kB / 412.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.6512, allocations: 15 kB / 412.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.6513, allocations: 36.17 kB / 412.3 MB, free: 4.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.6513, allocations: 1.219 kB / 412.3 MB, free: 4.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=27): time 0.003814/0.6551, allocations: 0.8973 MB / 413.2 MB, free: 3.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.6552, allocations: 55.14 kB / 413.2 MB, free: 3.918 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005215/0.6557, allocations: 320.1 kB / 413.6 MB, free: 3.742 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.6557, allocations: 31.05 kB / 413.6 MB, free: 3.707 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.6559, allocations: 235.7 kB / 413.8 MB, free: 3.508 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.618e-05/0.656, allocations: 98.92 kB / 413.9 MB, free: 3.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.6562, allocations: 73.28 kB / 414 MB, free: 3.379 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.6563, allocations: 340.5 kB / 414.3 MB, free: 3.055 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.6567, allocations: 122 kB / 414.4 MB, free: 3.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004738/0.6572, allocations: 211.4 kB / 414.6 MB, free: 2.871 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009915/0.6582, allocations: 350.9 kB / 415 MB, free: 2.656 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.6582, allocations: 1.094 kB / 415 MB, free: 2.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001905/0.6601, allocations: 0.6032 MB / 415.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.6601, allocations: 7.219 kB / 415.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.6602, allocations: 2.938 kB / 415.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/0.663, allocations: 0.815 MB / 416.4 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.6634, allocations: 74.36 kB / 416.5 MB, free: 2.367 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007962/0.6643, allocations: 1.179 MB / 417.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.6645, allocations: 29.14 kB / 417.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.866e-05/0.6646, allocations: 12.59 kB / 417.7 MB, free: 1.246 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.0002/0.6648, allocations: 166.9 kB / 417.9 MB, free: 1.094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.125e-05/0.6649, allocations: 33.44 kB / 417.9 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.6668, allocations: 0.5202 MB / 418.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.6668, allocations: 2.906 kB / 418.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.6669, allocations: 0 / 418.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.6669, allocations: 9.562 kB / 418.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008519/0.6677, allocations: 376 kB / 418.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.6677, allocations: 2.078 kB / 418.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000277/0.668, allocations: 45.62 kB / 418.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003174/0.6712, allocations: 0.8138 MB / 419.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/0.6713, allocations: 11.23 kB / 419.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.6727, allocations: 1.167 MB / 420.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6727, allocations: 0 / 420.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.6747, allocations: 0.602 MB / 421.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.6749, allocations: 109.5 kB / 421.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.588e-05/0.675, allocations: 2.469 kB / 421.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.6753, allocations: 15.89 kB / 421.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.6754, allocations: 23.94 kB / 421.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.6755, allocations: 12.94 kB / 421.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000419/0.6759, allocations: 224 kB / 421.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6759, allocations: 0 / 421.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009116/0.6768, allocations: 106.5 kB / 421.9 MB, free: 14.76 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.002975/0.6798, allocations: 1.174 MB / 423.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.6813, allocations: 325.8 kB / 423.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.6813, allocations: 0 / 423.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007109/0.6821, allocations: 168.4 kB / 423.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006078/0.6827, allocations: 49.7 kB / 423.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01153/0.6942, allocations: 3.817 MB / 427.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006317/0.6949, allocations: 0.7883 MB / 428.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002665/0.6952, allocations: 40.36 kB / 428.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002762/0.6955, allocations: 119 kB / 428.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of SimCode: time 2.144e-06/0.6955, allocations: 0 / 428.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0559/0.7514, allocations: 7.196 MB / 435.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.86/21.61, allocations: 18.39 kB / 435.6 MB, free: 5.211 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)