Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) 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/OpenIMDML 1.0.0-main/package.mo", uses=false) Using package OpenIMDML with version 1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.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) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo) Running command: "" <> buildModelFMU(OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM,fileNamePrefix="OpenIMDML_main_OpenIMDML_Examples_MultiDomainExamples_MultiDomainSinglePhaseInductionMotors_MultiDomainSPIM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM,fileNamePrefix="OpenIMDML_main_OpenIMDML_Examples_MultiDomainExamples_MultiDomainSinglePhaseInductionMotors_MultiDomainSPIM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4665/0.4665, allocations: 78.54 MB / 94.18 MB, free: 3.922 MB / 78.07 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001263, allocations: 114.8 kB / 113.7 MB, free: 9.805 MB / 94.07 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 180.5 kB / 133.4 MB, free: 6.16 MB / 110.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.614/1.614, allocations: 222.9 MB / 375.8 MB, free: 3.762 MB / 270.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/package.mo): time 0.9039/0.9039, allocations: 62.26 MB / 0.4951 GB, free: 7.875 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002321/0.002321, allocations: 128.6 kB / 0.6436 GB, free: 14.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1777, allocations: 69.5 MB / 0.7115 GB, free: 13.95 MB / 0.4982 GB Notification: Performance of NFInst.instantiate(OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM): time 0.00659/0.1843, allocations: 4.304 MB / 0.7157 GB, free: 9.625 MB / 0.4982 GB Notification: Performance of NFInst.instExpressions: time 0.00329/0.1876, allocations: 1.252 MB / 0.7169 GB, free: 8.371 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006913/0.1884, allocations: 7.938 kB / 0.717 GB, free: 8.363 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.0006356/0.1891, allocations: 126.9 kB / 0.7171 GB, free: 8.238 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.001197/0.1903, allocations: 254.2 kB / 0.7173 GB, free: 7.988 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.1919, allocations: 0.5324 MB / 0.7178 GB, free: 7.457 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.00158/0.1935, allocations: 0.8374 MB / 0.7187 GB, free: 6.613 MB / 0.4982 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004811/0.194, allocations: 165.1 kB / 0.7188 GB, free: 6.441 MB / 0.4982 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008944/0.1949, allocations: 358.6 kB / 0.7192 GB, free: 6.09 MB / 0.4982 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.1959, allocations: 438.2 kB / 0.7196 GB, free: 5.66 MB / 0.4982 GB Notification: Performance of NFPackage.collectConstants: time 0.0002676/0.1962, allocations: 72 kB / 0.7196 GB, free: 5.59 MB / 0.4982 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004367/0.1966, allocations: 124 kB / 0.7198 GB, free: 5.469 MB / 0.4982 GB Notification: Performance of NFScalarize.scalarize: time 0.0002359/0.1969, allocations: 175.3 kB / 0.7199 GB, free: 5.297 MB / 0.4982 GB Notification: Performance of NFVerifyModel.verify: time 0.0005603/0.1975, allocations: 358.1 kB / 0.7203 GB, free: 4.945 MB / 0.4982 GB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.199, allocations: 0.8445 MB / 0.7211 GB, free: 4.098 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.199, allocations: 0 / 0.7211 GB, free: 4.098 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.212e-06/0.199, allocations: 0 / 0.7211 GB, free: 4.098 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 3.617e-05/0.199, allocations: 0 / 0.7211 GB, free: 4.098 MB / 0.4982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.004312/0.2034, allocations: 1.242 MB / 0.7223 GB, free: 2.805 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.2034, allocations: 8.031 kB / 0.7223 GB, free: 2.797 MB / 0.4982 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.2036, allocations: 86.7 kB / 0.7224 GB, free: 2.703 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.2048, allocations: 192.3 kB / 0.7226 GB, free: 2.516 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.2059, allocations: 497.2 kB / 0.7231 GB, free: 1.988 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.2061, allocations: 66.69 kB / 0.7231 GB, free: 1.918 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.2062, allocations: 48 kB / 0.7232 GB, free: 1.871 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.2075, allocations: 0.5427 MB / 0.7237 GB, free: 1.309 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.2075, allocations: 0 / 0.7237 GB, free: 1.309 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.827e-05/0.2076, allocations: 16 kB / 0.7237 GB, free: 1.293 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.2076, allocations: 16 kB / 0.7237 GB, free: 1.277 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.2088, allocations: 491.7 kB / 0.7242 GB, free: 0.7969 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004275/0.2131, allocations: 2.081 MB / 0.7262 GB, free: 14.61 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.2144, allocations: 0.6303 MB / 0.7268 GB, free: 13.92 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006508/0.2151, allocations: 286.9 kB / 0.7271 GB, free: 13.64 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 6.285e-05/0.2151, allocations: 8.438 kB / 0.7271 GB, free: 13.63 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.2152, allocations: 46.94 kB / 0.7272 GB, free: 13.57 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=51): time 2.635e-06/0.2152, allocations: 0 / 0.7272 GB, free: 13.57 MB / 0.5138 GB Notification: Performance of matching and sorting (n=52): time 0.01051/0.2257, allocations: 2.86 MB / 0.73 GB, free: 10.63 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.2258, allocations: 85.55 kB / 0.73 GB, free: 10.53 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008444/0.2267, allocations: 498.1 kB / 0.7305 GB, free: 10.04 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 9.367e-05/0.2268, allocations: 41.64 kB / 0.7306 GB, free: 9.988 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.227, allocations: 292.5 kB / 0.7308 GB, free: 9.695 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002689/0.2273, allocations: 190.3 kB / 0.731 GB, free: 9.508 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.2275, allocations: 94.23 kB / 0.7311 GB, free: 9.41 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0002409/0.2278, allocations: 366.7 kB / 0.7315 GB, free: 9.043 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006247/0.2284, allocations: 241 kB / 0.7317 GB, free: 8.809 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007038/0.2291, allocations: 341.1 kB / 0.732 GB, free: 8.438 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.2304, allocations: 0.5934 MB / 0.7326 GB, free: 7.805 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.2304, allocations: 4 kB / 0.7326 GB, free: 7.801 MB / 0.5138 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.008583/0.239, allocations: 1.744 MB / 0.7343 GB, free: 6.047 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.2391, allocations: 8 kB / 0.7343 GB, free: 6.039 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.2391, allocations: 4 kB / 0.7343 GB, free: 6.035 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007721/0.2468, allocations: 1.171 MB / 0.7355 GB, free: 4.863 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.2474, allocations: 103.9 kB / 0.7356 GB, free: 4.762 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/0.2609, allocations: 6.258 MB / 0.7417 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008096/0.2618, allocations: 40.12 kB / 0.7417 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-05/0.2619, allocations: 20 kB / 0.7417 GB, free: 14.17 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 1 system {(5,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003351/0.2622, allocations: 177.7 kB / 0.7419 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001859/0.2624, allocations: 63.56 kB / 0.742 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004697/0.2671, allocations: 1.319 MB / 0.7432 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.2672, allocations: 7.938 kB / 0.7432 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.2672, allocations: 7.984 kB / 0.7433 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.2672, allocations: 4 kB / 0.7433 GB, free: 12.56 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005857/0.273, allocations: 2.122 MB / 0.7453 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.2731, allocations: 4 kB / 0.7453 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005074/0.2736, allocations: 75.89 kB / 0.7454 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002782/0.2764, allocations: 0.5909 MB / 0.746 GB, free: 9.684 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-05/0.2765, allocations: 11.92 kB / 0.746 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008003/0.2845, allocations: 4.746 MB / 0.7506 GB, free: 4.648 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.2845, allocations: 3.984 kB / 0.7506 GB, free: 4.645 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005704/0.2902, allocations: 1.785 MB / 0.7524 GB, free: 2.836 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003986/0.2907, allocations: 144.7 kB / 0.7525 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002131/0.2909, allocations: 11.94 kB / 0.7525 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007755/0.2917, allocations: 31.91 kB / 0.7526 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002965/0.2921, allocations: 72.28 kB / 0.7526 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.126e-05/0.2921, allocations: 16 kB / 0.7526 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005799/0.2927, allocations: 358.9 kB / 0.753 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.41e-07/0.2927, allocations: 0 / 0.753 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009943/0.2937, allocations: 192 kB / 0.7532 GB, free: 2.012 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (Inf.delta,Inf.eq,SPIM.Rotor_Inertia.w,SPIM.speed.phi,Inf.omega) * 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 (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): 2 systems {(1,4,100.0%), (4,10,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006149/0.2999, allocations: 2.337 MB / 0.7554 GB, free: 15.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002633/0.3026, allocations: 0.9002 MB / 0.7563 GB, free: 14.72 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3026, allocations: 4.312 kB / 0.7563 GB, free: 14.72 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.3043, allocations: 0.683 MB / 0.757 GB, free: 14.01 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009086/0.3052, allocations: 64.78 kB / 0.7571 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02423/0.3295, allocations: 7.503 MB / 0.7644 GB, free: 6.273 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006019/0.3301, allocations: 0.8833 MB / 0.7653 GB, free: 5.359 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002987/0.3304, allocations: 52.38 kB / 0.7653 GB, free: 5.305 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003935/0.3308, allocations: 207.4 kB / 0.7655 GB, free: 5.102 MB / 0.545 GB Notification: Performance of SimCode: time 1.433e-06/0.3308, allocations: 0 / 0.7655 GB, free: 5.102 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09421/0.4251, allocations: 17.93 MB / 0.783 GB, free: 3.426 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/15.06, allocations: 8.312 kB / 0.783 GB, free: 3.418 MB / 0.5607 GB (rm -f OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM.pipe ; mkfifo OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM.pipe ; head -c 1048576 < OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM.pipe >> ../files/OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM.sim & python3 -m fmpy simulate --output-file OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenIMDML_main_OpenIMDML_Examples_MultiDomainExamples_MultiDomainSinglePhaseInductionMotors_MultiDomainSPIM.fmu > OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainSinglePhaseInductionMotors.MultiDomainSPIM.pipe 2>&1)