Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",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.0009023/0.0009023, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.0009123/0.0009123, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.006915/0.006915, allocations: 1.22 MB / 292.2 MB, free: 1.027 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.0002771, allocations: 4 kB / 353.4 MB, free: 2.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2064, allocations: 50.67 MB / 404.1 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.002352/0.2087, allocations: 2.268 MB / 406.4 MB, free: 9.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.2105, allocations: 1.505 MB / 407.9 MB, free: 8.211 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.2106, allocations: 8.094 kB / 407.9 MB, free: 8.207 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005603/0.2112, allocations: 169 kB / 408.1 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.2113, allocations: 89.78 kB / 408.1 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003913/0.2117, allocations: 196.5 kB / 408.3 MB, free: 7.965 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002702/0.212, allocations: 252.7 kB / 408.6 MB, free: 7.836 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.2122, allocations: 85.08 kB / 408.7 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.2123, allocations: 119.7 kB / 408.8 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.2124, allocations: 131 kB / 408.9 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.178e-05/0.2125, allocations: 15.41 kB / 408.9 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.2127, allocations: 114.8 kB / 409 MB, free: 7.664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.324e-05/0.2128, allocations: 60.64 kB / 409.1 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.865e-05/0.2128, allocations: 86.83 kB / 409.2 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003099/0.2131, allocations: 311.2 kB / 409.5 MB, free: 7.492 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.2132, allocations: 0 / 409.5 MB, free: 7.492 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2132, allocations: 0 / 409.5 MB, free: 7.492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2132, allocations: 0 / 409.5 MB, free: 7.492 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0007614/0.2139, allocations: 0.6081 MB / 410.1 MB, free: 6.988 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.214, allocations: 10.59 kB / 410.1 MB, free: 6.988 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.328e-05/0.214, allocations: 64.02 kB / 410.2 MB, free: 6.934 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.026e-05/0.2141, allocations: 38.3 kB / 410.2 MB, free: 6.914 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.2143, allocations: 266 kB / 410.5 MB, free: 6.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.2144, allocations: 23.72 kB / 410.5 MB, free: 6.648 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.881e-05/0.2144, allocations: 25.97 kB / 410.5 MB, free: 6.641 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004353/0.2149, allocations: 273.4 kB / 410.8 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.2149, allocations: 0 / 410.8 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.2149, allocations: 15.48 kB / 410.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.2149, allocations: 5.562 kB / 410.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004338/0.2154, allocations: 261.2 kB / 411.1 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.2168, allocations: 1.077 MB / 412.1 MB, free: 5.695 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003963/0.2172, allocations: 247.3 kB / 412.4 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.395e-05/0.2172, allocations: 17.91 kB / 412.4 MB, free: 5.594 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.2172, allocations: 39.81 kB / 412.4 MB, free: 5.547 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.383e-06/0.2173, allocations: 5.188 kB / 412.4 MB, free: 5.543 MB / 286.1 MB Notification: Performance of matching and sorting (n=33): time 0.003794/0.2211, allocations: 1.607 MB / 414 MB, free: 4.777 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.002e-05/0.2211, allocations: 59.61 kB / 414.1 MB, free: 4.711 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.2213, allocations: 274.6 kB / 414.4 MB, free: 4.551 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.2214, allocations: 31.66 kB / 414.4 MB, free: 4.516 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.526e-05/0.2214, allocations: 196.1 kB / 414.6 MB, free: 4.348 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.718e-05/0.2215, allocations: 117.3 kB / 414.7 MB, free: 4.254 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.467e-05/0.2215, allocations: 6.094 kB / 414.7 MB, free: 4.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.5e-05/0.2216, allocations: 343.5 kB / 415 MB, free: 3.922 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002159/0.2218, allocations: 112.8 kB / 415.2 MB, free: 3.891 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.222, allocations: 173.3 kB / 415.3 MB, free: 3.793 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/0.2223, allocations: 130.3 kB / 415.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2223, allocations: 3.938 kB / 415.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00152/0.2238, allocations: 0.6421 MB / 416.1 MB, free: 3.512 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.2238, allocations: 9.719 kB / 416.1 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2239, allocations: 5.875 kB / 416.1 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/0.2264, allocations: 0.534 MB / 416.7 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.2266, allocations: 57.36 kB / 416.7 MB, free: 3.418 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005816/0.2272, allocations: 1.284 MB / 418 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.2274, allocations: 19.42 kB / 418 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.2274, allocations: 12.86 kB / 418 MB, free: 2.25 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.2276, allocations: 149.8 kB / 418.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.924e-05/0.2276, allocations: 31.41 kB / 418.2 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/0.2291, allocations: 0.5919 MB / 418.8 MB, free: 1.879 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2291, allocations: 2.75 kB / 418.8 MB, free: 1.879 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2291, allocations: 5.984 kB / 418.8 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2291, allocations: 5.391 kB / 418.8 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003918/0.2295, allocations: 400.7 kB / 419.2 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.2295, allocations: 0 / 419.2 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.2297, allocations: 45.55 kB / 419.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002436/0.2322, allocations: 0.5359 MB / 419.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.2322, allocations: 11.28 kB / 419.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005423/0.2328, allocations: 1.274 MB / 421.1 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2328, allocations: 3.938 kB / 421.1 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.2344, allocations: 0.8228 MB / 421.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.02e-05/0.2345, allocations: 110.8 kB / 422 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.109e-05/0.2345, allocations: 6.188 kB / 422 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.2347, allocations: 14.19 kB / 422 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/0.2348, allocations: 22.34 kB / 422 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.2348, allocations: 7.734 kB / 422 MB, free: 15.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001917/0.235, allocations: 199.7 kB / 422.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.235, allocations: 0 / 422.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003684/0.2354, allocations: 94.17 kB / 422.3 MB, free: 15.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (coil.i) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002047/0.2375, allocations: 1.387 MB / 423.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006793/0.2382, allocations: 333.3 kB / 424 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2382, allocations: 0 / 424 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004078/0.2386, allocations: 190.8 kB / 424.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.2388, allocations: 26.14 kB / 424.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00421/0.2431, allocations: 2.953 MB / 427.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.2434, allocations: 0.7993 MB / 428 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.2435, allocations: 23.36 kB / 428 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.2437, allocations: 105.5 kB / 428.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2437, allocations: 4.969 kB / 428.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.2611, allocations: 6.319 MB / 434.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/0.2613, allocations: 230.6 kB / 434.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.904, allocations: 0 / 434.7 MB, free: 8.109 MB / 302.1 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor.fmu > FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe 2>&1) Environment - environmentSimulation: