Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 65.69 kB / 306.4 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1157, allocations: 50.53 MB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2828/0.3986, allocations: 28.09 MB / 385 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02254/0.4212, allocations: 8.418 MB / 393.4 MB, free: 0.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009743/0.431, allocations: 205.4 kB / 393.6 MB, free: 472 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0193/0.4503, allocations: 7.722 MB / 401.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0112/0.4616, allocations: 2.538 MB / 403.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005219/0.4668, allocations: 1.789 MB / 405.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01495/0.4818, allocations: 9.942 MB / 415.6 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03478/0.5166, allocations: 17.81 MB / 433.4 MB, free: 56 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008591/0.5252, allocations: 4.677 MB / 438.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009646/0.5349, allocations: 5.808 MB / 443.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004106/0.539, allocations: 1.047 MB / 445 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007491/0.5466, allocations: 1.429 MB / 446.4 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005039/0.5516, allocations: 2.481 MB / 448.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01281/0.5645, allocations: 5.333 MB / 454.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02541/0.5899, allocations: 20.18 MB / 474.4 MB, free: 6.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.59, allocations: 0 / 474.4 MB, free: 6.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.59, allocations: 3.938 kB / 474.4 MB, free: 6.969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005516/0.5905, allocations: 0 / 474.4 MB, free: 6.969 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03973/0.6303, allocations: 11.91 MB / 486.3 MB, free: 10.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/0.6303, allocations: 12.03 kB / 486.3 MB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005541/0.6359, allocations: 1.539 MB / 487.9 MB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03048/0.6664, allocations: 5.608 MB / 493.5 MB, free: 3.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01334/0.6798, allocations: 6.129 MB / 499.6 MB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006058/0.6804, allocations: 0.7065 MB / 0.4886 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004362/0.6848, allocations: 0.9256 MB / 0.4895 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03505/0.7198, allocations: 15.09 MB / 0.5042 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002774/0.7202, allocations: 15.81 kB / 0.5042 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001698/0.7219, allocations: 392 kB / 0.5046 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005758/0.7225, allocations: 0.5194 MB / 0.5051 GB, free: 11.87 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03488/0.7573, allocations: 13.74 MB / 0.5185 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4549/1.212, allocations: 48.07 MB / 0.5655 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01615/1.228, allocations: 28.58 MB / 0.5934 GB, free: 78.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004157/1.233, allocations: 3.073 MB / 0.5964 GB, free: 77.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003334/1.233, allocations: 325.5 kB / 0.5967 GB, free: 77.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/1.233, allocations: 72.33 kB / 0.5968 GB, free: 76.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.222e-06/1.233, allocations: 0 / 0.5968 GB, free: 76.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.024/1.257, allocations: 14.72 MB / 0.6111 GB, free: 68.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/1.257, allocations: 98.86 kB / 0.6112 GB, free: 68.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004335/1.261, allocations: 3.606 MB / 0.6148 GB, free: 64.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002712/1.262, allocations: 85.7 kB / 0.6148 GB, free: 64.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/1.263, allocations: 4.049 MB / 0.6188 GB, free: 60.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008224/1.264, allocations: 1.342 MB / 0.6201 GB, free: 59.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001462/1.266, allocations: 1.16 MB / 0.6212 GB, free: 58.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.241e-05/1.266, allocations: 309.1 kB / 0.6215 GB, free: 57.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003167/1.269, allocations: 2.584 MB / 0.6241 GB, free: 55.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004437/1.273, allocations: 5.089 MB / 0.629 GB, free: 49.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007672/1.281, allocations: 8.34 MB / 0.6372 GB, free: 39.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.684e-05/1.281, allocations: 24 kB / 0.6372 GB, free: 39.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01167/1.293, allocations: 8.619 MB / 0.6456 GB, free: 30.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.037e-05/1.293, allocations: 47.92 kB / 0.6457 GB, free: 30.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001666/1.293, allocations: 84 kB / 0.6457 GB, free: 30.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00216/1.295, allocations: 0.831 MB / 0.6465 GB, free: 29.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004031/1.299, allocations: 1.365 MB / 0.6479 GB, free: 28.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008007/1.307, allocations: 7.106 MB / 0.6548 GB, free: 21.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004133/1.312, allocations: 331.2 kB / 0.6551 GB, free: 20.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004745/1.312, allocations: 304 kB / 0.6554 GB, free: 20.68 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004564/1.317, allocations: 3.521 MB / 0.6589 GB, free: 17.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007254/1.317, allocations: 403.1 kB / 0.6592 GB, free: 16.74 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007824/1.325, allocations: 5.976 MB / 0.6651 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/1.325, allocations: 44 kB / 0.6651 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/1.325, allocations: 8 kB / 0.6651 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.646e-05/1.325, allocations: 19.92 kB / 0.6651 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02009/1.345, allocations: 15.26 MB / 0.6801 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/1.345, allocations: 4 kB / 0.6801 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00259/1.348, allocations: 0.6982 MB / 0.6807 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/1.35, allocations: 0.6974 MB / 0.6814 GB, free: 9.809 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002622/1.35, allocations: 87.98 kB / 0.6815 GB, free: 9.723 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008201/1.358, allocations: 6.142 MB / 0.6875 GB, free: 3.449 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/1.358, allocations: 8 kB / 0.6875 GB, free: 3.441 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/1.371, allocations: 8.725 MB / 0.696 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/1.373, allocations: 0.8863 MB / 0.6969 GB, free: 9.68 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005102/1.374, allocations: 72 kB / 0.697 GB, free: 9.609 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/1.375, allocations: 187.9 kB / 0.6971 GB, free: 9.426 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005428/1.376, allocations: 262.7 kB / 0.6974 GB, free: 9.168 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002275/1.376, allocations: 112 kB / 0.6975 GB, free: 9.059 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003556/1.38, allocations: 2.42 MB / 0.6999 GB, free: 6.652 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.38, allocations: 0 / 0.6999 GB, free: 6.652 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004866/1.385, allocations: 1.556 MB / 0.7014 GB, free: 5.102 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1887/1.573, allocations: 9.463 MB / 0.7106 GB, free: 149.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01014/1.584, allocations: 6.493 MB / 0.717 GB, free: 148 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/1.584, allocations: 1.031 kB / 0.717 GB, free: 148 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004695/1.588, allocations: 2.939 MB / 0.7198 GB, free: 146.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004847/1.593, allocations: 0.9151 MB / 0.7207 GB, free: 146.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0849/1.678, allocations: 64.79 MB / 0.784 GB, free: 94.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004443/1.683, allocations: 5.975 MB / 0.7898 GB, free: 88.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004459/1.687, allocations: 1.885 MB / 0.7917 GB, free: 86.21 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003301/1.69, allocations: 3.217 MB / 0.7948 GB, free: 83 MB / 478.1 MB Notification: Performance of SimCode: time 1.543e-06/1.69, allocations: 0 / 0.7948 GB, free: 83 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3052/1.996, allocations: 118.9 MB / 0.9109 GB, free: 151.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/1.996, allocations: 280.3 kB / 0.9112 GB, free: 151.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.902/5.898, allocations: 3.375 kB / 0.9112 GB, free: 151.4 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches