Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.001003, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 226.5 MB / 244.7 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008046/0.0008046, allocations: 96.75 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002047/0.0002047, allocations: 11.94 kB / 356.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.172, allocations: 51.29 MB / 408.2 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.01584/0.1878, allocations: 23.45 MB / 431.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.1988, allocations: 6.925 MB / 438.5 MB, free: 13.23 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003216/0.202, allocations: 163.4 kB / 438.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003288/0.2054, allocations: 1.25 MB / 439.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004988/0.2104, allocations: 1.868 MB / 441.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002758/0.2131, allocations: 1.034 MB / 442.8 MB, free: 8.914 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009258/0.2224, allocations: 8.685 MB / 451.5 MB, free: 200 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006852/0.2293, allocations: 6.138 MB / 457.7 MB, free: 9.973 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003565/0.2329, allocations: 2.739 MB / 460.4 MB, free: 7.223 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004378/0.2373, allocations: 3.532 MB / 463.9 MB, free: 3.676 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008682/0.2381, allocations: 467.9 kB / 464.4 MB, free: 3.219 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001859/0.24, allocations: 0.6794 MB / 465.1 MB, free: 2.539 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001355/0.2414, allocations: 1.685 MB / 466.8 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003816/0.2452, allocations: 3.696 MB / 470.5 MB, free: 13.13 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.2554, allocations: 12.14 MB / 482.6 MB, free: 0.957 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2554, allocations: 0 / 482.6 MB, free: 0.957 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2554, allocations: 0 / 482.6 MB, free: 0.957 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002765/0.2557, allocations: 4 kB / 482.6 MB, free: 0.9531 MB / 346.7 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.01852/0.2742, allocations: 7.793 MB / 490.4 MB, free: 9.066 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.2743, allocations: 12.03 kB / 490.4 MB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002158/0.2764, allocations: 0.9921 MB / 491.4 MB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008423/0.2849, allocations: 1.752 MB / 493.2 MB, free: 6.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008192/0.2931, allocations: 4.84 MB / 498 MB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004031/0.2935, allocations: 0.538 MB / 498.5 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001155/0.2947, allocations: 0.7107 MB / 499.2 MB, free: 128 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01852/0.3132, allocations: 9.754 MB / 0.4971 GB, free: 6.293 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001518/0.3134, allocations: 11.91 kB / 0.4971 GB, free: 6.281 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000753/0.3142, allocations: 296 kB / 0.4974 GB, free: 5.992 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003091/0.3145, allocations: 362.6 kB / 0.4977 GB, free: 5.637 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2913/0.6057, allocations: 8.282 MB / 0.5058 GB, free: 79.75 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03599/0.6418, allocations: 31 MB / 0.5361 GB, free: 58.73 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/0.6523, allocations: 17.23 MB / 0.5529 GB, free: 41.02 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005169/0.6575, allocations: 3.752 MB / 0.5566 GB, free: 37.27 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.669, allocations: 9.368 MB / 0.5657 GB, free: 27.75 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.669, allocations: 60.78 kB / 0.5658 GB, free: 27.68 MB / 378.8 MB Notification: Performance of pre-optimization done (n=281): time 3.897e-06/0.669, allocations: 3.938 kB / 0.5658 GB, free: 27.68 MB / 378.8 MB Notification: Performance of matching and sorting (n=289): time 0.01943/0.6885, allocations: 12.44 MB / 0.5779 GB, free: 14.94 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.6885, allocations: 81.62 kB / 0.578 GB, free: 14.85 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003778/0.6923, allocations: 3.644 MB / 0.5815 GB, free: 11.23 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.6925, allocations: 77.7 kB / 0.5816 GB, free: 11.14 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/0.6937, allocations: 3.198 MB / 0.5847 GB, free: 7.922 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000442/0.6941, allocations: 0.9886 MB / 0.5857 GB, free: 6.941 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.6943, allocations: 72 kB / 0.5858 GB, free: 6.871 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.6944, allocations: 453.9 kB / 0.5862 GB, free: 6.422 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/0.6964, allocations: 1.542 MB / 0.5877 GB, free: 4.879 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002258/0.6987, allocations: 2.681 MB / 0.5903 GB, free: 1.699 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005219/0.7039, allocations: 4.521 MB / 0.5947 GB, free: 12.65 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.626e-05/0.7039, allocations: 11.94 kB / 0.5948 GB, free: 12.64 MB / 394.8 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.007799/0.7117, allocations: 5.337 MB / 0.6 GB, free: 7.219 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.298e-05/0.7118, allocations: 20 kB / 0.6 GB, free: 7.199 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.562e-05/0.7118, allocations: 36.75 kB / 0.6 GB, free: 7.164 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.7131, allocations: 0.5709 MB / 0.6006 GB, free: 6.574 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002901/0.716, allocations: 0.858 MB / 0.6014 GB, free: 5.715 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007799/0.7238, allocations: 8.793 MB / 0.61 GB, free: 12.39 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00262/0.7265, allocations: 179.9 kB / 0.6102 GB, free: 12.21 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003182/0.7268, allocations: 164 kB / 0.6103 GB, free: 12.05 MB / 410.8 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 (446): * Single equations (assignments): 440 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(3,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003755/0.7306, allocations: 2.14 MB / 0.6124 GB, free: 9.902 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007854/0.7314, allocations: 403.1 kB / 0.6128 GB, free: 9.504 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008143/0.7395, allocations: 4.807 MB / 0.6175 GB, free: 4.59 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.516e-05/0.7396, allocations: 28 kB / 0.6175 GB, free: 4.562 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-05/0.7396, allocations: 12 kB / 0.6175 GB, free: 4.551 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.074e-05/0.7397, allocations: 15.94 kB / 0.6176 GB, free: 4.535 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/0.757, allocations: 10.98 MB / 0.6283 GB, free: 9.406 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/0.7571, allocations: 7.984 kB / 0.6283 GB, free: 9.398 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/0.7589, allocations: 447.4 kB / 0.6287 GB, free: 8.961 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002499/0.7614, allocations: 1.05 MB / 0.6297 GB, free: 7.891 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001894/0.7616, allocations: 83.91 kB / 0.6298 GB, free: 7.809 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01784/0.7795, allocations: 17.49 MB / 0.6469 GB, free: 5.402 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.7795, allocations: 4.078 kB / 0.6469 GB, free: 5.398 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0109/0.7904, allocations: 6.863 MB / 0.6536 GB, free: 14.32 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001729/0.7922, allocations: 0.8201 MB / 0.6544 GB, free: 13.48 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005084/0.7927, allocations: 72.03 kB / 0.6545 GB, free: 13.41 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001735/0.7944, allocations: 147.9 kB / 0.6546 GB, free: 13.27 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005657/0.795, allocations: 221.8 kB / 0.6548 GB, free: 13.05 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/0.7952, allocations: 87.97 kB / 0.6549 GB, free: 12.96 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003379/0.7986, allocations: 2.459 MB / 0.6573 GB, free: 10.52 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7986, allocations: 0 / 0.6573 GB, free: 10.52 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.003229/0.8018, allocations: 1.237 MB / 0.6585 GB, free: 9.289 MB / 458.8 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 (217): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 8,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01029/0.8121, allocations: 7.549 MB / 0.6659 GB, free: 1.523 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.006696/0.8188, allocations: 4.533 MB / 0.6703 GB, free: 12.88 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.8188, allocations: 0 / 0.6703 GB, free: 12.88 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004489/0.8233, allocations: 3.085 MB / 0.6733 GB, free: 9.695 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006421/0.8298, allocations: 1.066 MB / 0.6744 GB, free: 8.645 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2144/1.044, allocations: 38.79 MB / 0.7123 GB, free: 147.7 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003061/1.047, allocations: 4.254 MB / 0.7164 GB, free: 145.7 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002687/1.05, allocations: 2.752 MB / 0.7191 GB, free: 143.1 MB / 474.8 MB Notification: Performance of SimCode: time 5.71e-07/1.05, allocations: 0 / 0.7191 GB, free: 143.1 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.615/10.66, allocations: 344 MB / 1.055 GB, free: 141.8 MB / 474.8 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMPM_Inverter_Polyphase/SMPM_Inverter_Polyphase.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches