Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001719/0.001719, allocations: 97.19 kB / 17.58 MB, free: 5.418 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.00219/0.00219, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.28/2.28, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 47.92 kB / 280.8 MB, free: 3.051 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1599, allocations: 46.63 MB / 327.4 MB, free: 4.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.05826/0.2182, allocations: 32.95 MB / 360.4 MB, free: 3.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02892/0.2472, allocations: 8.986 MB / 369.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00841/0.2557, allocations: 199.3 kB / 369.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03873/0.2945, allocations: 7.945 MB / 377.5 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3387/0.6332, allocations: 3.692 MB / 381.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008924/0.6421, allocations: 2.14 MB / 383.3 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03186/0.674, allocations: 13.07 MB / 396.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05756/0.7316, allocations: 22.6 MB / 419 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01967/0.7514, allocations: 6.6 MB / 425.6 MB, free: 9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02195/0.7734, allocations: 7.337 MB / 432.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009494/0.7829, allocations: 1.891 MB / 434.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01575/0.7987, allocations: 2.354 MB / 437.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009382/0.8082, allocations: 3.82 MB / 441 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02393/0.8322, allocations: 7.191 MB / 448.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05097/0.8832, allocations: 24.94 MB / 473.1 MB, free: 11.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.102e-05/0.8833, allocations: 0 / 473.1 MB, free: 11.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.8833, allocations: 0 / 473.1 MB, free: 11.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000749/0.884, allocations: 0 / 473.1 MB, free: 11.97 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.08599/0.97, allocations: 14.8 MB / 487.9 MB, free: 13.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.081e-05/0.9701, allocations: 15.5 kB / 487.9 MB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008521/0.9787, allocations: 1.541 MB / 489.5 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09026/1.069, allocations: 7.733 MB / 497.2 MB, free: 3.953 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03146/1.1, allocations: 7.325 MB / 0.4927 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001553/1.102, allocations: 0.8069 MB / 0.4935 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007151/1.109, allocations: 1.067 MB / 0.4945 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07969/1.189, allocations: 17.68 MB / 0.5118 GB, free: 9.348 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000527/1.19, allocations: 23.8 kB / 0.5118 GB, free: 9.324 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004093/1.194, allocations: 452.5 kB / 0.5123 GB, free: 8.898 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009585/1.195, allocations: 0.6553 MB / 0.5129 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05069/1.245, allocations: 16.97 MB / 0.5295 GB, free: 7.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5675/1.813, allocations: 57.16 MB / 0.5853 GB, free: 109.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03804/1.851, allocations: 40.05 MB / 0.6244 GB, free: 69.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009726/1.861, allocations: 4.502 MB / 0.6288 GB, free: 67.49 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02865/1.89, allocations: 12.71 MB / 0.6412 GB, free: 55.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.401e-05/1.89, allocations: 77.81 kB / 0.6413 GB, free: 55.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=398): time 1.102e-05/1.89, allocations: 0 / 0.6413 GB, free: 55.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=423): time 0.06045/1.95, allocations: 21.45 MB / 0.6622 GB, free: 33.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.586e-05/1.95, allocations: 128.7 kB / 0.6624 GB, free: 33.31 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009618/1.96, allocations: 4.828 MB / 0.6671 GB, free: 28.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008975/1.961, allocations: 97.7 kB / 0.6672 GB, free: 28.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003062/1.964, allocations: 4.798 MB / 0.6719 GB, free: 23.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001814/1.966, allocations: 1.45 MB / 0.6733 GB, free: 22.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002503/1.968, allocations: 1.196 MB / 0.6744 GB, free: 20.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.288e-05/1.968, allocations: 301.1 kB / 0.6747 GB, free: 20.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006082/1.974, allocations: 2.968 MB / 0.6776 GB, free: 17.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007701/1.982, allocations: 5.248 MB / 0.6827 GB, free: 11.35 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01477/1.997, allocations: 8.717 MB / 0.6913 GB, free: 1.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.078e-05/1.997, allocations: 24 kB / 0.6913 GB, free: 1.547 MB / 446.1 MB Notification: Performance of matching and sorting (n=803) (initialization): time 0.02967/2.027, allocations: 10.04 MB / 0.7011 GB, free: 7.457 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.535e-05/2.027, allocations: 36 kB / 0.7011 GB, free: 7.422 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/2.027, allocations: 72 kB / 0.7012 GB, free: 7.352 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006968/2.034, allocations: 1.682 MB / 0.7028 GB, free: 5.656 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008544/2.043, allocations: 1.392 MB / 0.7042 GB, free: 4.262 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2736/2.316, allocations: 17.79 MB / 0.7216 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00787/2.324, allocations: 341.5 kB / 0.7219 GB, free: 138.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009352/2.325, allocations: 304.1 kB / 0.7222 GB, free: 138.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * 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 (710): * Single equations (assignments): 706 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,67.3%), (1,1,100.0%), (14,44,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009342/2.334, allocations: 3.958 MB / 0.726 GB, free: 136.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001658/2.336, allocations: 0.4912 MB / 0.7265 GB, free: 136.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01854/2.355, allocations: 7.799 MB / 0.7341 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.001e-05/2.355, allocations: 43.53 kB / 0.7342 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.252e-05/2.355, allocations: 19.75 kB / 0.7342 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.508e-05/2.355, allocations: 19.97 kB / 0.7342 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03737/2.392, allocations: 17.54 MB / 0.7514 GB, free: 125.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.801e-05/2.392, allocations: 11.34 kB / 0.7514 GB, free: 125.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00449/2.397, allocations: 0.7238 MB / 0.7521 GB, free: 125.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005785/2.403, allocations: 1.57 MB / 0.7536 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004392/2.403, allocations: 101.4 kB / 0.7537 GB, free: 125.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02885/2.432, allocations: 21.22 MB / 0.7744 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/2.432, allocations: 16.09 kB / 0.7744 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02298/2.455, allocations: 11.46 MB / 0.7856 GB, free: 97.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/2.458, allocations: 1.154 MB / 0.7868 GB, free: 96.02 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001173/2.46, allocations: 91.94 kB / 0.7868 GB, free: 95.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003954/2.464, allocations: 227.8 kB / 0.7871 GB, free: 95.71 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001055/2.465, allocations: 335.2 kB / 0.7874 GB, free: 95.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004048/2.465, allocations: 128 kB / 0.7875 GB, free: 95.26 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006288/2.471, allocations: 3.251 MB / 0.7907 GB, free: 92.01 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.61e-07/2.471, allocations: 0 / 0.7907 GB, free: 92.01 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01033/2.482, allocations: 1.901 MB / 0.7925 GB, free: 90.12 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,loadInertia.phi) * 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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,40.8%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02305/2.505, allocations: 12.19 MB / 0.8044 GB, free: 77.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03583/2.541, allocations: 11.7 MB / 0.8159 GB, free: 66.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/2.541, allocations: 4 kB / 0.8159 GB, free: 66.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01047/2.551, allocations: 4.642 MB / 0.8204 GB, free: 61.31 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008393/2.56, allocations: 1.315 MB / 0.8217 GB, free: 60 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4633/3.023, allocations: 81.36 MB / 0.9011 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01174/3.035, allocations: 6.849 MB / 0.9078 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00946/3.044, allocations: 1.932 MB / 0.9097 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008056/3.052, allocations: 4.032 MB / 0.9136 GB, free: 117.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.312e-06/3.052, allocations: 0 / 0.9136 GB, free: 117.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.842/3.894, allocations: 155.7 MB / 1.066 GB, free: 132.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.61/24.51, allocations: 10.59 kB / 1.066 GB, free: 132.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches