Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 110.4 kB / 17.73 MB, free: 5.363 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.001568/0.001568, allocations: 187.1 kB / 18.66 MB, free: 4.441 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.367/1.367, 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.001143/0.001143, allocations: 51.92 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2736/0.3755, allocations: 15.83 MB / 391 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.3893, allocations: 5.397 MB / 396.4 MB, free: 216 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004725/0.3941, allocations: 91.81 kB / 396.5 MB, free: 192 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004927/0.3991, allocations: 1.112 MB / 397.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007801/0.4069, allocations: 1.35 MB / 398.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003737/0.4107, allocations: 0.9681 MB / 399.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009163/0.4198, allocations: 3.971 MB / 403.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006374/0.4262, allocations: 3.555 MB / 407.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005505/0.4318, allocations: 1.886 MB / 409.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005842/0.4377, allocations: 2.271 MB / 411.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002272/0.44, allocations: 0.5161 MB / 412.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003547/0.4435, allocations: 0.7436 MB / 412.9 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001336/0.4449, allocations: 1.283 MB / 414.1 MB, free: 7.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00322/0.4481, allocations: 2.249 MB / 416.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00961/0.4577, allocations: 6.888 MB / 423.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.4578, allocations: 4 kB / 423.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.4578, allocations: 0 / 423.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002001/0.458, allocations: 0 / 423.3 MB, free: 15.47 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01273/0.4707, allocations: 4.658 MB / 427.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.199e-05/0.4708, allocations: 8.031 kB / 427.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002942/0.4738, allocations: 0.6714 MB / 428.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00437/0.4781, allocations: 2.373 MB / 431 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/0.4784, allocations: 263.3 kB / 431.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005132/0.4789, allocations: 344.3 kB / 431.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007334/0.4862, allocations: 4.468 MB / 436.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-05/0.4863, allocations: 15.97 kB / 436.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/0.4867, allocations: 140 kB / 436.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/0.4868, allocations: 166.8 kB / 436.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006321/0.4932, allocations: 3.735 MB / 440.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02214/0.5153, allocations: 14.31 MB / 454.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005991/0.5214, allocations: 5.357 MB / 459.8 MB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/0.5235, allocations: 1.255 MB / 461 MB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007082/0.5306, allocations: 3.785 MB / 464.8 MB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.5307, allocations: 47.81 kB / 464.9 MB, free: 4.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.346e-06/0.5307, allocations: 4 kB / 464.9 MB, free: 4.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01039/0.5411, allocations: 5.471 MB / 470.3 MB, free: 14.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.5412, allocations: 68.72 kB / 470.4 MB, free: 14.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003749/0.545, allocations: 2.094 MB / 472.5 MB, free: 12.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.5451, allocations: 49.7 kB / 472.5 MB, free: 12.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001339/0.5464, allocations: 1.653 MB / 474.2 MB, free: 10.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/0.5469, allocations: 465.4 kB / 474.7 MB, free: 10.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005497/0.5474, allocations: 339.2 kB / 475 MB, free: 10.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.5476, allocations: 305.1 kB / 475.3 MB, free: 9.773 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.549, allocations: 0.7145 MB / 476 MB, free: 9.059 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/0.5508, allocations: 1.349 MB / 477.3 MB, free: 7.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003315/0.5541, allocations: 2.227 MB / 479.6 MB, free: 4.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.757e-05/0.5542, allocations: 4 kB / 479.6 MB, free: 4.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004756/0.5589, allocations: 2.521 MB / 482.1 MB, free: 2.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.559, allocations: 12 kB / 482.1 MB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.967e-05/0.559, allocations: 20 kB / 482.1 MB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004615/0.5595, allocations: 150.4 kB / 482.3 MB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/0.5612, allocations: 467.5 kB / 482.7 MB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002832/0.564, allocations: 3.36 MB / 486.1 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.5658, allocations: 107.8 kB / 486.2 MB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/0.566, allocations: 88.09 kB / 486.3 MB, free: 13.87 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00219/0.5682, allocations: 1.04 MB / 487.3 MB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005475/0.5687, allocations: 221.3 kB / 487.5 MB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003967/0.5727, allocations: 2.173 MB / 489.7 MB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.5727, allocations: 12 kB / 489.7 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/0.5728, allocations: 11.98 kB / 489.7 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.5728, allocations: 7.922 kB / 489.7 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009513/0.5823, allocations: 5.156 MB / 494.9 MB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.5823, allocations: 4 kB / 494.9 MB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.5834, allocations: 231.9 kB / 495.1 MB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007795/0.5842, allocations: 275.2 kB / 495.4 MB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.5843, allocations: 31.98 kB / 495.4 MB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00765/0.592, allocations: 7.794 MB / 0.4914 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.592, allocations: 7.969 kB / 0.4914 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005086/0.5971, allocations: 3.181 MB / 0.4945 GB, free: 8.863 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.5983, allocations: 450.4 kB / 0.495 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006484/0.5989, allocations: 31.98 kB / 0.495 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.6004, allocations: 72.17 kB / 0.4951 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.6007, allocations: 100.7 kB / 0.4952 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.856e-05/0.6008, allocations: 43.98 kB / 0.4952 GB, free: 8.156 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003032/0.6038, allocations: 1.427 MB / 0.4966 GB, free: 6.711 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6038, allocations: 0 / 0.4966 GB, free: 6.711 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00293/0.6068, allocations: 0.5587 MB / 0.4972 GB, free: 6.152 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.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 (112): * Single equations (assignments): 108 * 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,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,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.000509/0.6073, allocations: 166.9 kB / 0.4973 GB, free: 5.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003692/0.611, allocations: 2.106 MB / 0.4994 GB, free: 3.828 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.611, allocations: 0 / 0.4994 GB, free: 3.828 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002057/0.6131, allocations: 1.379 MB / 0.5007 GB, free: 2.398 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003127/0.6162, allocations: 0.5472 MB / 0.5012 GB, free: 1.848 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/0.629, allocations: 6.048 MB / 0.5072 GB, free: 11.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003706/0.6328, allocations: 2.413 MB / 0.5095 GB, free: 9.293 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002218/0.635, allocations: 494.5 kB / 0.51 GB, free: 8.809 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007336/0.6358, allocations: 159.4 kB / 0.5101 GB, free: 8.652 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6358, allocations: 7.938 kB / 0.5101 GB, free: 8.645 MB / 446.1 MB Notification: Performance of Templates: time 0.05648/0.6923, allocations: 27.13 MB / 0.5366 GB, free: 13.47 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches