Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.006202/0.006202, allocations: 109.8 kB / 21.98 MB, free: 5.18 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001734/0.001734, allocations: 220.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 230.6 MB / 259 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 75.86 kB / 379.9 MB, free: 2.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2687, allocations: 53.37 MB / 433.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03392/0.3026, allocations: 28.8 MB / 462 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0191/0.3217, allocations: 8.536 MB / 470.6 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006578/0.3283, allocations: 254.7 kB / 470.8 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0204/0.3487, allocations: 8.306 MB / 479.1 MB, free: 8.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.3598, allocations: 2.903 MB / 482 MB, free: 5.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0063/0.3661, allocations: 1.929 MB / 483.9 MB, free: 4.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0156/0.3817, allocations: 10.11 MB / 494.1 MB, free: 9.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02732/0.409, allocations: 14.04 MB / 0.4962 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01027/0.4193, allocations: 5.498 MB / 0.5016 GB, free: 6.223 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01172/0.431, allocations: 6.144 MB / 0.5076 GB, free: 60 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004808/0.4358, allocations: 1.539 MB / 0.5091 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007129/0.443, allocations: 1.933 MB / 0.5109 GB, free: 12.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005769/0.4487, allocations: 2.989 MB / 0.5139 GB, free: 9.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01366/0.4624, allocations: 5.852 MB / 0.5196 GB, free: 3.715 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5381/1.001, allocations: 20.69 MB / 0.5398 GB, free: 37.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/1.001, allocations: 1 kB / 0.5398 GB, free: 37.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.365e-06/1.001, allocations: 4.031 kB / 0.5398 GB, free: 37.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000647/1.001, allocations: 0.5312 kB / 0.5398 GB, free: 37.89 MB / 446.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.04006/1.041, allocations: 12.01 MB / 0.5515 GB, free: 34.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.578e-05/1.041, allocations: 13.78 kB / 0.5515 GB, free: 34.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0305/1.072, allocations: 5.589 MB / 0.557 GB, free: 34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0139/1.086, allocations: 6.385 MB / 0.5632 GB, free: 33.11 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006691/1.086, allocations: 0.705 MB / 0.5639 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004117/1.091, allocations: 0.9289 MB / 0.5648 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03502/1.126, allocations: 15.1 MB / 0.5796 GB, free: 25.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000391/1.126, allocations: 19.94 kB / 0.5796 GB, free: 25.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003079/1.129, allocations: 389.1 kB / 0.58 GB, free: 24.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004013/1.129, allocations: 0.5116 MB / 0.5805 GB, free: 24.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02718/1.157, allocations: 13.78 MB / 0.5939 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09293/1.249, allocations: 46.56 MB / 0.6394 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01531/1.265, allocations: 8.062 MB / 0.6472 GB, free: 4.961 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005397/1.27, allocations: 2.802 MB / 0.65 GB, free: 2.164 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004308/1.271, allocations: 114.8 kB / 0.6501 GB, free: 2.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.119e-05/1.271, allocations: 73.33 kB / 0.6502 GB, free: 1.992 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.382e-06/1.271, allocations: 0 / 0.6502 GB, free: 1.992 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03454/1.305, allocations: 14.76 MB / 0.6646 GB, free: 3.238 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.541e-05/1.305, allocations: 90.48 kB / 0.6647 GB, free: 3.137 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006433/1.312, allocations: 3.615 MB / 0.6682 GB, free: 15.53 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008916/1.313, allocations: 89.7 kB / 0.6683 GB, free: 15.43 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003638/1.316, allocations: 4.188 MB / 0.6724 GB, free: 11.24 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002158/1.318, allocations: 1.403 MB / 0.6737 GB, free: 9.852 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001997/1.32, allocations: 1.18 MB / 0.6749 GB, free: 8.66 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001441/1.321, allocations: 305.1 kB / 0.6752 GB, free: 8.359 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004331/1.325, allocations: 2.592 MB / 0.6777 GB, free: 5.762 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006832/1.332, allocations: 5.092 MB / 0.6827 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.345, allocations: 8.35 MB / 0.6908 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001026/1.345, allocations: 20 kB / 0.6909 GB, free: 6.324 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01802/1.363, allocations: 8.657 MB / 0.6993 GB, free: 14.16 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.654e-05/1.363, allocations: 40 kB / 0.6994 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000189/1.363, allocations: 84 kB / 0.6994 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002503/1.366, allocations: 0.8537 MB / 0.7003 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005225/1.371, allocations: 1.372 MB / 0.7016 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01267/1.383, allocations: 7.58 MB / 0.709 GB, free: 4.266 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004899/1.388, allocations: 335.5 kB / 0.7093 GB, free: 3.938 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/1.39, allocations: 311.9 kB / 0.7096 GB, free: 3.633 MB / 0.545 GB 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.008064/1.398, allocations: 3.507 MB / 0.713 GB, free: 216 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00142/1.399, allocations: 429.3 kB / 0.7135 GB, free: 15.79 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/1.412, allocations: 5.971 MB / 0.7193 GB, free: 9.812 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.843e-05/1.412, allocations: 40 kB / 0.7193 GB, free: 9.773 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.86e-05/1.412, allocations: 12 kB / 0.7193 GB, free: 9.762 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.945e-05/1.412, allocations: 19.92 kB / 0.7194 GB, free: 9.742 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03362/1.446, allocations: 14.96 MB / 0.734 GB, free: 10.85 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.041e-05/1.446, allocations: 8 kB / 0.734 GB, free: 10.84 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002919/1.449, allocations: 0.6922 MB / 0.7347 GB, free: 10.19 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/1.451, allocations: 0.7097 MB / 0.7353 GB, free: 9.477 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004798/1.451, allocations: 95.97 kB / 0.7354 GB, free: 9.383 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/1.462, allocations: 6.614 MB / 0.7419 GB, free: 2.68 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/1.462, allocations: 14.38 kB / 0.7419 GB, free: 2.668 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01574/1.478, allocations: 8.773 MB / 0.7505 GB, free: 9.805 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003184/1.481, allocations: 0.8485 MB / 0.7513 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007826/1.482, allocations: 81.97 kB / 0.7514 GB, free: 8.875 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002073/1.484, allocations: 179.8 kB / 0.7516 GB, free: 8.699 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006652/1.484, allocations: 282.3 kB / 0.7518 GB, free: 8.426 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002735/1.485, allocations: 120 kB / 0.7519 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004831/1.489, allocations: 2.42 MB / 0.7543 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.489, allocations: 0 / 0.7543 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007493/1.497, allocations: 1.551 MB / 0.7558 GB, free: 4.352 MB / 0.5919 GB 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.0008973/1.498, allocations: 260.7 kB / 0.7561 GB, free: 4.125 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.3355/1.833, allocations: 6.272 MB / 0.7622 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/1.833, allocations: 1.781 kB / 0.7622 GB, free: 233.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008684/1.842, allocations: 2.745 MB / 0.7649 GB, free: 232.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01/1.852, allocations: 0.96 MB / 0.7658 GB, free: 232.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04735/1.899, allocations: 15.76 MB / 0.7812 GB, free: 226.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01243/1.912, allocations: 5.796 MB / 0.7869 GB, free: 224 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002644/1.914, allocations: 407.2 kB / 0.7873 GB, free: 224 MB / 0.5919 GB Notification: Performance of SimCode: time 1.463e-06/1.914, allocations: 0 / 0.7873 GB, free: 224 MB / 0.5919 GB Notification: Performance of Templates: time 0.2597/2.174, allocations: 153.4 MB / 0.9371 GB, free: 73.43 MB / 0.5919 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.276667384896427]