Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.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.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",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.001189/0.001189, allocations: 104.2 kB / 17.58 MB, free: 5.422 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.001264/0.001264, allocations: 191.9 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 1.351/1.351, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001471/0.001472, allocations: 56.12 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09276/0.09425, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.03125/0.1256, allocations: 25.34 MB / 352.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01926/0.1449, allocations: 7.063 MB / 359.8 MB, free: 3.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006889/0.1518, allocations: 151.4 kB / 359.9 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006075/0.158, allocations: 1.704 MB / 361.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009109/0.1671, allocations: 2.267 MB / 363.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004137/0.1713, allocations: 1.524 MB / 365.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.1818, allocations: 8.476 MB / 373.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1589/0.3407, allocations: 7.271 MB / 381.2 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006632/0.3474, allocations: 3.963 MB / 385.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008706/0.3561, allocations: 4.597 MB / 389.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00431/0.3605, allocations: 1.132 MB / 390.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006628/0.3671, allocations: 1.35 MB / 392.2 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005127/0.3723, allocations: 2.529 MB / 394.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01051/0.3828, allocations: 4.723 MB / 399.5 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01708/0.3999, allocations: 14.6 MB / 414.1 MB, free: 4.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4, allocations: 0 / 414.1 MB, free: 4.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4, allocations: 0 / 414.1 MB, free: 4.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004128/0.4004, allocations: 0 / 414.1 MB, free: 4.547 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.0312/0.4316, allocations: 9.234 MB / 423.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.4317, allocations: 11 kB / 423.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002938/0.4346, allocations: 0.9938 MB / 424.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01051/0.4452, allocations: 1.745 MB / 426.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01243/0.4576, allocations: 4.693 MB / 430.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00089/0.4585, allocations: 0.5332 MB / 431.3 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003851/0.4624, allocations: 0.7121 MB / 432 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02593/0.4884, allocations: 9.779 MB / 441.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003493/0.4888, allocations: 9.406 kB / 441.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002066/0.4909, allocations: 301.3 kB / 442.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003761/0.4912, allocations: 362.2 kB / 442.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01969/0.5109, allocations: 8.281 MB / 450.7 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05928/0.5703, allocations: 30.48 MB / 481.2 MB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01639/0.5867, allocations: 16.08 MB / 497.3 MB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006165/0.5929, allocations: 3.041 MB / 0.4886 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01851/0.6114, allocations: 8.095 MB / 0.4965 GB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.438e-05/0.6116, allocations: 64.78 kB / 0.4966 GB, free: 7.902 MB / 414.1 MB Notification: Performance of pre-optimization done (n=281): time 7.374e-06/0.6116, allocations: 0 / 0.4966 GB, free: 7.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=289): time 0.02978/0.6414, allocations: 11.57 MB / 0.5079 GB, free: 12.08 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.6415, allocations: 85.69 kB / 0.5079 GB, free: 11.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008147/0.6496, allocations: 3.645 MB / 0.5115 GB, free: 8.363 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004553/0.6501, allocations: 73.7 kB / 0.5116 GB, free: 8.285 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002541/0.6527, allocations: 3.183 MB / 0.5147 GB, free: 5.078 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001184/0.6539, allocations: 0.9965 MB / 0.5157 GB, free: 4.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00186/0.6558, allocations: 0.6452 MB / 0.5163 GB, free: 3.438 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.6559, allocations: 305.1 kB / 0.5166 GB, free: 3.137 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003043/0.6589, allocations: 1.483 MB / 0.518 GB, free: 1.652 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00366/0.6626, allocations: 2.623 MB / 0.5206 GB, free: 14.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006905/0.6695, allocations: 4.386 MB / 0.5249 GB, free: 9.781 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.324e-05/0.6696, allocations: 16 kB / 0.5249 GB, free: 9.766 MB / 446.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01/0.6796, allocations: 5.013 MB / 0.5298 GB, free: 4.898 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.984e-05/0.6797, allocations: 24.56 kB / 0.5298 GB, free: 4.875 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.993e-05/0.6798, allocations: 36 kB / 0.5298 GB, free: 4.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.6809, allocations: 409.4 kB / 0.5302 GB, free: 4.426 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003228/0.6842, allocations: 0.863 MB / 0.5311 GB, free: 3.617 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2708/0.9549, allocations: 7.968 MB / 0.5388 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004248/0.9592, allocations: 170 kB / 0.539 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/0.9604, allocations: 168.6 kB / 0.5392 GB, free: 147.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006042/0.9664, allocations: 2.129 MB / 0.5413 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/0.9678, allocations: 401 kB / 0.5416 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01118/0.979, allocations: 4.47 MB / 0.546 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.825e-05/0.979, allocations: 28.81 kB / 0.546 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.243e-05/0.9791, allocations: 12.72 kB / 0.546 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.933e-05/0.9792, allocations: 14.48 kB / 0.5461 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02618/1.005, allocations: 10.47 MB / 0.5563 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/1.005, allocations: 5.719 kB / 0.5563 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002006/1.007, allocations: 443.2 kB / 0.5567 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002201/1.01, allocations: 0.8778 MB / 0.5576 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003456/1.01, allocations: 80.88 kB / 0.5576 GB, free: 140.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0154/1.025, allocations: 17.66 MB / 0.5749 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/1.026, allocations: 5.469 kB / 0.5749 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/1.036, allocations: 6.428 MB / 0.5812 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002525/1.039, allocations: 0.7937 MB / 0.5819 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001572/1.04, allocations: 70.61 kB / 0.582 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002736/1.043, allocations: 144.5 kB / 0.5821 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006653/1.044, allocations: 215.4 kB / 0.5824 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002976/1.044, allocations: 84.52 kB / 0.5824 GB, free: 123.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005152/1.049, allocations: 2.474 MB / 0.5848 GB, free: 122.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.61e-07/1.049, allocations: 0 / 0.5848 GB, free: 122.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006189/1.055, allocations: 1.208 MB / 0.586 GB, free: 122.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (220): * Single equations (assignments): 213 * 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,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01103/1.067, allocations: 7.106 MB / 0.593 GB, free: 116 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01344/1.08, allocations: 6.167 MB / 0.599 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/1.08, allocations: 5.641 kB / 0.599 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004604/1.085, allocations: 2.977 MB / 0.6019 GB, free: 106.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007736/1.092, allocations: 1.12 MB / 0.603 GB, free: 105.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08901/1.182, allocations: 52.14 MB / 0.6539 GB, free: 48.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006095/1.188, allocations: 4.351 MB / 0.6582 GB, free: 44 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003838/1.192, allocations: 0.8903 MB / 0.659 GB, free: 43.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003588/1.195, allocations: 2.733 MB / 0.6617 GB, free: 40.38 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/1.195, allocations: 0 / 0.6617 GB, free: 40.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4125/1.608, allocations: 107.4 MB / 0.7666 GB, free: 104.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/13.61, allocations: 7.688 kB / 0.7666 GB, free: 104.3 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter_MultiPhase/SMPM_Inverter_MultiPhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches