Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.001566/0.001566, allocations: 110.5 kB / 17.28 MB, free: 6.195 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.001552/0.001552, allocations: 185.4 kB / 18.2 MB, free: 5.277 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.672/1.672, allocations: 205.1 MB / 224 MB, free: 12.43 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.001369/0.001369, allocations: 44.16 kB / 280.3 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1389, allocations: 46.62 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02494/0.1639, allocations: 23.37 MB / 350.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01733/0.1813, allocations: 6.441 MB / 356.7 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00663/0.188, allocations: 131.4 kB / 356.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005839/0.1939, allocations: 1.352 MB / 358.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009843/0.2038, allocations: 1.884 MB / 360.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005497/0.2093, allocations: 1.33 MB / 361.4 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01395/0.2233, allocations: 8.29 MB / 369.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01402/0.2373, allocations: 7.153 MB / 376.8 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2862/0.5236, allocations: 3.621 MB / 380.5 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01072/0.5344, allocations: 4.376 MB / 384.8 MB, free: 17.35 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005523/0.54, allocations: 1.085 MB / 385.9 MB, free: 17.35 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007385/0.5474, allocations: 1.306 MB / 387.2 MB, free: 17.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004224/0.5516, allocations: 2.426 MB / 389.6 MB, free: 17.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01281/0.5645, allocations: 4.508 MB / 394.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01665/0.5811, allocations: 14.03 MB / 408.2 MB, free: 9.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.135e-05/0.5812, allocations: 3.312 kB / 408.2 MB, free: 9.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.588e-06/0.5812, allocations: 0 / 408.2 MB, free: 9.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000465/0.5817, allocations: 0 / 408.2 MB, free: 9.262 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02981/0.6115, allocations: 8.808 MB / 417 MB, free: 3.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.6116, allocations: 13.97 kB / 417 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002834/0.6145, allocations: 0.9563 MB / 418 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00947/0.624, allocations: 1.673 MB / 419.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01026/0.6342, allocations: 4.414 MB / 424 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005992/0.6349, allocations: 0.5184 MB / 424.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002659/0.6375, allocations: 0.6851 MB / 425.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0305/0.668, allocations: 9.439 MB / 434.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003198/0.6684, allocations: 0 / 434.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002075/0.6705, allocations: 289.3 kB / 435 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004438/0.671, allocations: 337.6 kB / 435.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02198/0.693, allocations: 8.05 MB / 443.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0648/0.7578, allocations: 28.81 MB / 472.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01825/0.7761, allocations: 16.58 MB / 488.7 MB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00588/0.782, allocations: 2.939 MB / 491.7 MB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01744/0.7995, allocations: 7.727 MB / 499.4 MB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.279e-05/0.7996, allocations: 60.36 kB / 499.5 MB, free: 2.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=259): time 4.549e-06/0.7996, allocations: 0 / 499.5 MB, free: 2.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=265): time 0.02551/0.8252, allocations: 10.99 MB / 0.4985 GB, free: 6.805 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.8252, allocations: 77.5 kB / 0.4986 GB, free: 6.715 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006601/0.8319, allocations: 3.373 MB / 0.5019 GB, free: 3.348 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003248/0.8322, allocations: 69.7 kB / 0.5019 GB, free: 3.273 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002327/0.8345, allocations: 3.036 MB / 0.5049 GB, free: 220 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001035/0.8356, allocations: 0.9152 MB / 0.5058 GB, free: 15.3 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/0.837, allocations: 0.6012 MB / 0.5064 GB, free: 14.7 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.8372, allocations: 305.1 kB / 0.5067 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002764/0.84, allocations: 1.393 MB / 0.508 GB, free: 13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003185/0.8432, allocations: 2.431 MB / 0.5104 GB, free: 10.13 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006305/0.8495, allocations: 4.079 MB / 0.5144 GB, free: 5.699 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.054e-05/0.8496, allocations: 8 kB / 0.5144 GB, free: 5.691 MB / 430.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.009333/0.8589, allocations: 4.704 MB / 0.519 GB, free: 1.109 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.829e-05/0.859, allocations: 27.38 kB / 0.519 GB, free: 1.086 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.438e-05/0.8591, allocations: 32 kB / 0.519 GB, free: 1.055 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.8601, allocations: 393.2 kB / 0.5194 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003161/0.8632, allocations: 0.7971 MB / 0.5202 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007632/0.8709, allocations: 7.972 MB / 0.528 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/0.8745, allocations: 163.8 kB / 0.5281 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005225/0.875, allocations: 152 kB / 0.5283 GB, free: 7.117 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * 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,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004813/0.8798, allocations: 2.068 MB / 0.5303 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/0.8811, allocations: 367.5 kB / 0.5306 GB, free: 4.727 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009445/0.8906, allocations: 4.221 MB / 0.5348 GB, free: 440 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-05/0.8907, allocations: 28 kB / 0.5348 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.023e-05/0.8907, allocations: 15.94 kB / 0.5348 GB, free: 396 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-05/0.8908, allocations: 11.95 kB / 0.5348 GB, free: 384 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2753/1.166, allocations: 9.869 MB / 0.5445 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.187e-05/1.166, allocations: 3.688 kB / 0.5445 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/1.168, allocations: 403.1 kB / 0.5448 GB, free: 153.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/1.17, allocations: 0.8696 MB / 0.5457 GB, free: 152.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002195/1.171, allocations: 74.28 kB / 0.5458 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01491/1.186, allocations: 17.51 MB / 0.5629 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.186, allocations: 4.844 kB / 0.5629 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009812/1.195, allocations: 6.026 MB / 0.5688 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00238/1.198, allocations: 0.7466 MB / 0.5695 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005754/1.198, allocations: 66.81 kB / 0.5696 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/1.2, allocations: 127.2 kB / 0.5697 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000645/1.201, allocations: 204.3 kB / 0.5699 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001637/1.201, allocations: 84.47 kB / 0.5699 GB, free: 135.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003595/1.204, allocations: 2.291 MB / 0.5722 GB, free: 134.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.204, allocations: 0 / 0.5722 GB, free: 134.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004592/1.209, allocations: 1.145 MB / 0.5733 GB, free: 134.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (198): * Single equations (assignments): 191 * 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,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008953/1.218, allocations: 6.69 MB / 0.5798 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01084/1.229, allocations: 5.738 MB / 0.5854 GB, free: 125.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/1.229, allocations: 10.72 kB / 0.5855 GB, free: 125.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0036/1.233, allocations: 2.85 MB / 0.5882 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004608/1.237, allocations: 0.9975 MB / 0.5892 GB, free: 121.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0887/1.326, allocations: 50.63 MB / 0.6386 GB, free: 66.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007672/1.334, allocations: 4.225 MB / 0.6428 GB, free: 62.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003987/1.338, allocations: 0.8326 MB / 0.6436 GB, free: 61.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003844/1.342, allocations: 2.538 MB / 0.6461 GB, free: 58.98 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/1.342, allocations: 6.234 kB / 0.6461 GB, free: 58.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3649/1.706, allocations: 99.78 MB / 0.7435 GB, free: 135.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/1.707, allocations: 267.8 kB / 0.7438 GB, free: 135.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.754/6.461, allocations: 0 / 0.7438 GB, free: 135.4 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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/SMR_Inverter_MultiPhase/SMR_Inverter_MultiPhase.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches