Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001472, allocations: 109.4 kB / 18.4 MB, free: 4.668 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.001581/0.001581, allocations: 189.1 kB / 19.33 MB, free: 3.746 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.381/1.381, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001303/0.001303, allocations: 59.92 kB / 329.3 MB, free: 3.238 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.0903, allocations: 46.61 MB / 375.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2309/0.3213, allocations: 40.01 MB / 415.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02889/0.3502, allocations: 10.56 MB / 426.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01173/0.362, allocations: 262.2 kB / 426.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0216/0.3837, allocations: 8.535 MB / 435.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0157/0.3994, allocations: 3.633 MB / 438.9 MB, free: 380 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009026/0.4085, allocations: 2.395 MB / 441.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01975/0.4282, allocations: 13.43 MB / 454.7 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04524/0.4735, allocations: 25.35 MB / 480 MB, free: 6.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01252/0.4861, allocations: 7.071 MB / 487.1 MB, free: 15.9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01432/0.5005, allocations: 8.047 MB / 495.2 MB, free: 7.824 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006704/0.5072, allocations: 1.996 MB / 497.2 MB, free: 5.828 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009272/0.5165, allocations: 2.382 MB / 499.5 MB, free: 3.445 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008019/0.5246, allocations: 4.146 MB / 0.4919 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01715/0.5418, allocations: 7.828 MB / 0.4995 GB, free: 7.43 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03871/0.5806, allocations: 26.42 MB / 0.5253 GB, free: 12.93 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.352e-05/0.5807, allocations: 0 / 0.5253 GB, free: 12.93 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.217e-06/0.5807, allocations: 0 / 0.5253 GB, free: 12.93 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001036/0.5817, allocations: 0 / 0.5253 GB, free: 12.93 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05229/0.634, allocations: 15.6 MB / 0.5406 GB, free: 13.21 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/0.6341, allocations: 12.03 kB / 0.5406 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04944/0.6836, allocations: 9.11 MB / 0.5495 GB, free: 4.062 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.43/1.114, allocations: 7.504 MB / 0.5568 GB, free: 133.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001051/1.115, allocations: 0.9452 MB / 0.5577 GB, free: 133.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00509/1.12, allocations: 1.237 MB / 0.5589 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05462/1.174, allocations: 20.15 MB / 0.5786 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007194/1.175, allocations: 25.19 kB / 0.5786 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005081/1.18, allocations: 0.511 MB / 0.5791 GB, free: 124.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001198/1.182, allocations: 0.7343 MB / 0.5799 GB, free: 124.4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03818/1.22, allocations: 18.98 MB / 0.5984 GB, free: 112.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09519/1.315, allocations: 62.65 MB / 0.6596 GB, free: 48.89 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03246/1.347, allocations: 56.97 MB / 0.7152 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00711/1.355, allocations: 4.099 MB / 0.7192 GB, free: 12.92 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02263/1.377, allocations: 11.33 MB / 0.7303 GB, free: 1.578 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.371e-05/1.377, allocations: 77.28 kB / 0.7303 GB, free: 1.492 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 5.53e-06/1.377, allocations: 0 / 0.7303 GB, free: 1.492 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2611/1.639, allocations: 18.14 MB / 0.7481 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.027e-05/1.639, allocations: 92.91 kB / 0.7481 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01004/1.649, allocations: 5.462 MB / 0.7535 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008061/1.65, allocations: 85.23 kB / 0.7536 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003915/1.653, allocations: 5.888 MB / 0.7593 GB, free: 161.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001841/1.655, allocations: 1.371 MB / 0.7607 GB, free: 160.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002888/1.658, allocations: 1.51 MB / 0.7621 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.437e-05/1.658, allocations: 301.1 kB / 0.7624 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005766/1.664, allocations: 3.082 MB / 0.7654 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008279/1.672, allocations: 6.759 MB / 0.772 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01385/1.686, allocations: 10.58 MB / 0.7824 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001646/1.687, allocations: 37.41 kB / 0.7824 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02158/1.708, allocations: 10.8 MB / 0.7929 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001348/1.708, allocations: 60.03 kB / 0.793 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002251/1.709, allocations: 125.5 kB / 0.7931 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/1.711, allocations: 0.9695 MB / 0.7941 GB, free: 139.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006772/1.718, allocations: 1.818 MB / 0.7958 GB, free: 139.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/1.728, allocations: 10.24 MB / 0.8058 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006338/1.734, allocations: 446.5 kB / 0.8063 GB, free: 132.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001299/1.736, allocations: 417 kB / 0.8067 GB, free: 132 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007145/1.743, allocations: 4.455 MB / 0.811 GB, free: 129.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001259/1.744, allocations: 0.5431 MB / 0.8115 GB, free: 129.5 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009808/1.754, allocations: 6.518 MB / 0.8179 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.607e-05/1.754, allocations: 40 kB / 0.818 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/1.754, allocations: 11.61 kB / 0.818 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.079e-05/1.754, allocations: 22.47 kB / 0.818 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02605/1.78, allocations: 15.95 MB / 0.8336 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.856e-05/1.78, allocations: 4.5 kB / 0.8336 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003226/1.784, allocations: 0.7532 MB / 0.8343 GB, free: 111 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/1.786, allocations: 0.7923 MB / 0.8351 GB, free: 110.2 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005339/1.786, allocations: 94.39 kB / 0.8352 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008185/1.794, allocations: 9.333 MB / 0.8443 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.794, allocations: 5.219 kB / 0.8443 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/1.807, allocations: 9.534 MB / 0.8536 GB, free: 90.71 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003009/1.81, allocations: 1.072 MB / 0.8546 GB, free: 89.61 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001447/1.812, allocations: 80.7 kB / 0.8547 GB, free: 89.54 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003202/1.815, allocations: 223.8 kB / 0.8549 GB, free: 89.32 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006107/1.816, allocations: 262.8 kB / 0.8552 GB, free: 89.06 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002414/1.816, allocations: 111.9 kB / 0.8553 GB, free: 88.95 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00545/1.822, allocations: 3.599 MB / 0.8588 GB, free: 85.38 MB / 0.5138 GB Notification: Performance of sort global known variables: time 7.02e-07/1.822, allocations: 4 kB / 0.8588 GB, free: 85.37 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009216/1.831, allocations: 1.983 MB / 0.8607 GB, free: 83.39 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001169/1.832, allocations: 261.7 kB / 0.861 GB, free: 83.14 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01205/1.844, allocations: 8.063 MB / 0.8689 GB, free: 75.01 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/1.844, allocations: 4 kB / 0.8689 GB, free: 75.01 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005437/1.85, allocations: 3.55 MB / 0.8723 GB, free: 71.38 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008102/1.858, allocations: 1.319 MB / 0.8736 GB, free: 70.09 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03827/1.896, allocations: 20.45 MB / 0.8936 GB, free: 49.61 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01146/1.908, allocations: 7.364 MB / 0.9008 GB, free: 42.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00236/1.91, allocations: 499.3 kB / 0.9013 GB, free: 41.71 MB / 0.5138 GB Notification: Performance of SimCode: time 1.203e-06/1.91, allocations: 4 kB / 0.9013 GB, free: 41.71 MB / 0.5138 GB Notification: Performance of Templates: time 1.194/3.104, allocations: 478.1 MB / 1.368 GB, free: 188.4 MB / 0.5607 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches