Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.002136/0.002143, allocations: 114.5 kB / 17.73 MB, free: 5.301 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.002338/0.002338, allocations: 187 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.561/1.561, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001382/0.001383, allocations: 52.2 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09174/0.09313, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.2475/0.3407, allocations: 12.83 MB / 387.5 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.3524, allocations: 4.273 MB / 391.8 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003697/0.3562, allocations: 64.66 kB / 391.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004272/0.3605, allocations: 1.023 MB / 392.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006743/0.3673, allocations: 1.32 MB / 394.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003127/0.3705, allocations: 0.8648 MB / 395 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008404/0.3789, allocations: 4.04 MB / 399.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006547/0.3855, allocations: 3.185 MB / 402.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004599/0.3901, allocations: 1.896 MB / 404.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00549/0.3957, allocations: 2.115 MB / 406.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001996/0.3977, allocations: 0.5091 MB / 406.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003475/0.4012, allocations: 0.7119 MB / 407.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00235/0.4036, allocations: 1.145 MB / 408.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006882/0.4105, allocations: 2.123 MB / 410.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01409/0.4246, allocations: 6.758 MB / 417.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.4247, allocations: 1.375 kB / 417.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4247, allocations: 3.938 kB / 417.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003733/0.4251, allocations: 0 / 417.5 MB, free: 4.559 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01831/0.4434, allocations: 4.49 MB / 422 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.496e-05/0.4435, allocations: 12.03 kB / 422 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002037/0.4456, allocations: 439.1 kB / 422.4 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007689/0.4533, allocations: 0.8369 MB / 423.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00802/0.4613, allocations: 2.332 MB / 425.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/0.4616, allocations: 235.8 kB / 425.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001404/0.4631, allocations: 315.9 kB / 426.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00918/0.4723, allocations: 4.25 MB / 430.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.456e-05/0.4724, allocations: 7.891 kB / 430.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000473/0.4728, allocations: 131.9 kB / 430.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.473, allocations: 146.2 kB / 430.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007577/0.4806, allocations: 3.651 MB / 434.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0249/0.5055, allocations: 13.36 MB / 447.7 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007399/0.513, allocations: 6.877 MB / 454.6 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002592/0.5156, allocations: 1.422 MB / 456 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007369/0.523, allocations: 3.62 MB / 459.6 MB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.5231, allocations: 47.56 kB / 459.7 MB, free: 9.367 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.627e-06/0.5231, allocations: 0 / 459.7 MB, free: 9.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01493/0.538, allocations: 6.689 MB / 466.4 MB, free: 2.484 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.5381, allocations: 64.72 kB / 466.4 MB, free: 2.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003078/0.5412, allocations: 1.863 MB / 468.3 MB, free: 0.543 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001965/0.5414, allocations: 49.7 kB / 468.3 MB, free: 500 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.5426, allocations: 1.455 MB / 469.8 MB, free: 15.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000499/0.5431, allocations: 0.5151 MB / 470.3 MB, free: 14.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004872/0.5436, allocations: 303.5 kB / 470.6 MB, free: 14.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5437, allocations: 309.1 kB / 470.9 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.5451, allocations: 0.7652 MB / 471.7 MB, free: 13.13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.5466, allocations: 1.228 MB / 472.9 MB, free: 11.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003067/0.5497, allocations: 2.104 MB / 475 MB, free: 9.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.5497, allocations: 4 kB / 475 MB, free: 9.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004931/0.5547, allocations: 2.668 MB / 477.7 MB, free: 6.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.5547, allocations: 12 kB / 477.7 MB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.271e-05/0.5548, allocations: 16 kB / 477.7 MB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.5562, allocations: 0.4896 MB / 478.2 MB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.5578, allocations: 391.3 kB / 478.6 MB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009127/0.5669, allocations: 6.929 MB / 485.5 MB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.569, allocations: 75.91 kB / 485.6 MB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/0.5692, allocations: 79.92 kB / 485.6 MB, free: 14.45 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * 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,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002103/0.5713, allocations: 1.048 MB / 486.7 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004895/0.5718, allocations: 206.7 kB / 486.9 MB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00466/0.5765, allocations: 2.504 MB / 489.4 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.5765, allocations: 12 kB / 489.4 MB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.5765, allocations: 8 kB / 489.4 MB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/0.5766, allocations: 7.969 kB / 489.4 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009912/0.5865, allocations: 5.529 MB / 495 MB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.5865, allocations: 8 kB / 495 MB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009904/0.5875, allocations: 215.7 kB / 495.2 MB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001415/0.5889, allocations: 0.5038 MB / 495.7 MB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.5891, allocations: 31.98 kB / 495.7 MB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/0.6009, allocations: 11.42 MB / 0.4952 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.6009, allocations: 4.031 kB / 0.4952 GB, free: 8.035 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006171/0.6071, allocations: 3.567 MB / 0.4987 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.6085, allocations: 467.6 kB / 0.4992 GB, free: 3.902 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004062/0.6089, allocations: 36 kB / 0.4992 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.61, allocations: 63.95 kB / 0.4993 GB, free: 3.805 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003068/0.6104, allocations: 117 kB / 0.4994 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.096e-05/0.6105, allocations: 39.98 kB / 0.4994 GB, free: 3.652 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002253/0.6127, allocations: 1.289 MB / 0.5007 GB, free: 2.371 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6127, allocations: 384 / 0.5007 GB, free: 2.371 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002619/0.6154, allocations: 0.5898 MB / 0.5013 GB, free: 1.781 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,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.006222/0.6216, allocations: 4.169 MB / 0.5053 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004389/0.6261, allocations: 2.411 MB / 0.5077 GB, free: 11.08 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.6261, allocations: 4.188 kB / 0.5077 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002875/0.629, allocations: 1.723 MB / 0.5094 GB, free: 9.285 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002939/0.632, allocations: 0.5149 MB / 0.5099 GB, free: 8.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0375/0.6695, allocations: 21.36 MB / 0.5307 GB, free: 2.793 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002232/0.6718, allocations: 2.37 MB / 0.533 GB, free: 404 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00158/0.6734, allocations: 416.8 kB / 0.5334 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/0.6752, allocations: 1.151 MB / 0.5346 GB, free: 14.84 MB / 478.1 MB Notification: Performance of SimCode: time 5.01e-07/0.6752, allocations: 0 / 0.5346 GB, free: 14.84 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3145/0.9898, allocations: 55.18 MB / 0.5885 GB, free: 136.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/15.24, allocations: 20.73 kB / 0.5885 GB, free: 136.5 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches