Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 230.6 MB / 254.1 MB, free: 15.09 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 51.94 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1135, allocations: 53.32 MB / 426.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2831/0.3966, allocations: 41.98 MB / 468.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03253/0.4291, allocations: 11.24 MB / 479.6 MB, free: 7.199 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01338/0.4425, allocations: 380.4 kB / 480 MB, free: 7.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02516/0.4677, allocations: 8.9 MB / 488.9 MB, free: 364 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01692/0.4846, allocations: 3.661 MB / 492.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009907/0.4945, allocations: 2.452 MB / 495 MB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02453/0.519, allocations: 13.42 MB / 0.4965 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04755/0.5666, allocations: 19.87 MB / 0.5159 GB, free: 10.85 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01752/0.5841, allocations: 7.122 MB / 0.5228 GB, free: 3.707 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01608/0.6002, allocations: 8.098 MB / 0.5307 GB, free: 11.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007231/0.6074, allocations: 2 MB / 0.5327 GB, free: 9.582 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009433/0.6169, allocations: 2.41 MB / 0.5351 GB, free: 7.172 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007989/0.6248, allocations: 4.048 MB / 0.539 GB, free: 3.113 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01685/0.6417, allocations: 7.774 MB / 0.5466 GB, free: 11.31 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04152/0.6832, allocations: 26.55 MB / 0.5725 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.159e-05/0.6832, allocations: 7.938 kB / 0.5725 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6832, allocations: 0 / 0.5725 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0009062/0.6841, allocations: 4 kB / 0.5725 GB, free: 0.6602 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.05529/0.7394, allocations: 15.76 MB / 0.5879 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.7395, allocations: 8.031 kB / 0.5879 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00688/0.7464, allocations: 1.752 MB / 0.5896 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03631/0.7827, allocations: 6.212 MB / 0.5957 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02255/0.8052, allocations: 8.329 MB / 0.6038 GB, free: 364 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001359/0.8066, allocations: 0.9273 MB / 0.6048 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006355/0.8129, allocations: 1.222 MB / 0.6059 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5493/1.362, allocations: 19.05 MB / 0.6246 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001064/1.363, allocations: 25.12 kB / 0.6246 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006059/1.369, allocations: 0.5057 MB / 0.6251 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001628/1.371, allocations: 0.6561 MB / 0.6257 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05055/1.422, allocations: 17.07 MB / 0.6424 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1155/1.537, allocations: 60.84 MB / 0.7018 GB, free: 89.98 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0235/1.561, allocations: 33.06 MB / 0.7341 GB, free: 53.07 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006892/1.567, allocations: 3.485 MB / 0.7375 GB, free: 49.57 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02147/1.589, allocations: 9.133 MB / 0.7464 GB, free: 40.56 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.437e-05/1.589, allocations: 73.41 kB / 0.7465 GB, free: 40.48 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 5.64e-06/1.589, allocations: 0 / 0.7465 GB, free: 40.48 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.04426/1.633, allocations: 17.93 MB / 0.764 GB, free: 22.95 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/1.633, allocations: 98.52 kB / 0.7641 GB, free: 22.84 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/1.645, allocations: 5.267 MB / 0.7692 GB, free: 17.66 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008956/1.645, allocations: 97.64 kB / 0.7693 GB, free: 17.56 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003643/1.649, allocations: 5.821 MB / 0.775 GB, free: 11.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001849/1.651, allocations: 1.47 MB / 0.7764 GB, free: 10.36 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004737/1.656, allocations: 1.366 MB / 0.7778 GB, free: 8.98 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.127e-05/1.656, allocations: 301.1 kB / 0.7781 GB, free: 8.684 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005285/1.661, allocations: 2.977 MB / 0.781 GB, free: 5.703 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007761/1.669, allocations: 6.012 MB / 0.7868 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/1.685, allocations: 9.687 MB / 0.7963 GB, free: 3.102 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/1.685, allocations: 31.94 kB / 0.7963 GB, free: 3.07 MB / 0.5294 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.0268/1.712, allocations: 10.11 MB / 0.8062 GB, free: 8.898 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001824/1.712, allocations: 52.61 kB / 0.8062 GB, free: 8.848 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002576/1.712, allocations: 100 kB / 0.8063 GB, free: 8.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003526/1.716, allocations: 0.9445 MB / 0.8073 GB, free: 7.793 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007347/1.723, allocations: 1.634 MB / 0.8089 GB, free: 6.156 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0171/1.74, allocations: 10.21 MB / 0.8188 GB, free: 11.52 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007225/1.748, allocations: 415.5 kB / 0.8192 GB, free: 11.12 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002087/1.75, allocations: 371.9 kB / 0.8196 GB, free: 10.75 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01195/1.762, allocations: 4.309 MB / 0.8238 GB, free: 6.43 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002617/1.764, allocations: 0.5667 MB / 0.8243 GB, free: 5.859 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3279/2.092, allocations: 6.635 MB / 0.8308 GB, free: 176 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.54e-05/2.092, allocations: 40.25 kB / 0.8309 GB, free: 176 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.816e-05/2.092, allocations: 11.66 kB / 0.8309 GB, free: 176 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001329/2.092, allocations: 19.41 kB / 0.8309 GB, free: 176 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04493/2.137, allocations: 16.25 MB / 0.8467 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.48e-05/2.137, allocations: 7.125 kB / 0.8468 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004198/2.142, allocations: 0.7746 MB / 0.8475 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002917/2.144, allocations: 0.7916 MB / 0.8483 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009734/2.145, allocations: 95.11 kB / 0.8484 GB, free: 171.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/2.157, allocations: 9.343 MB / 0.8575 GB, free: 164.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/2.157, allocations: 7.156 kB / 0.8575 GB, free: 164.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02218/2.179, allocations: 9.828 MB / 0.8671 GB, free: 160.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003728/2.183, allocations: 1.133 MB / 0.8682 GB, free: 160.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002055/2.185, allocations: 74.75 kB / 0.8683 GB, free: 160.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004343/2.189, allocations: 227.4 kB / 0.8685 GB, free: 160.2 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00134/2.191, allocations: 280.4 kB / 0.8688 GB, free: 160.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000855/2.192, allocations: 119.6 kB / 0.8689 GB, free: 160.1 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.00897/2.201, allocations: 3.509 MB / 0.8723 GB, free: 158.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 5.31e-07/2.201, allocations: 0 / 0.8723 GB, free: 158.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01029/2.211, allocations: 1.945 MB / 0.8742 GB, free: 158.7 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02076/2.232, allocations: 10.55 MB / 0.8845 GB, free: 154 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01446/2.246, allocations: 7.536 MB / 0.8919 GB, free: 149.2 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/2.246, allocations: 1.031 kB / 0.8919 GB, free: 149.2 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007404/2.254, allocations: 3.4 MB / 0.8952 GB, free: 146.2 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01081/2.264, allocations: 1.417 MB / 0.8966 GB, free: 145.1 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1238/2.388, allocations: 67.35 MB / 0.9623 GB, free: 75.91 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01238/2.401, allocations: 7.428 MB / 0.9696 GB, free: 68.44 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006702/2.407, allocations: 2.194 MB / 0.9717 GB, free: 66.24 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007427/2.415, allocations: 4.529 MB / 0.9762 GB, free: 61.71 MB / 0.5607 GB Notification: Performance of SimCode: time 2.094e-06/2.415, allocations: 0 / 0.9762 GB, free: 61.71 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5634/2.978, allocations: 155.3 MB / 1.128 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.69/25.67, allocations: 5.031 kB / 1.128 GB, free: 134.3 MB / 0.5763 GB " [Timeout remaining time 634] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 42.89783517294563]