Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.001416/0.001416, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001552/0.001552, allocations: 215.5 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.5 MB / 257.4 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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_CurrentSource,fileNamePrefix="Modelica_trunk_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_trunk_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.002532/0.002532, allocations: 59.89 kB / 377.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2521, allocations: 53.41 MB / 431.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04561/0.2977, allocations: 35.86 MB / 467.1 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02631/0.3241, allocations: 10.88 MB / 477.9 MB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007811/0.3319, allocations: 381.9 kB / 478.3 MB, free: 7.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.022/0.3539, allocations: 8.263 MB / 486.6 MB, free: 14.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01422/0.3681, allocations: 3.659 MB / 490.2 MB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00855/0.3766, allocations: 2.395 MB / 492.6 MB, free: 8.805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01924/0.3959, allocations: 13.52 MB / 0.4943 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03899/0.4349, allocations: 17.37 MB / 0.5113 GB, free: 9.719 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01304/0.4479, allocations: 7.157 MB / 0.5182 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01396/0.4619, allocations: 7.692 MB / 0.5258 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005748/0.4676, allocations: 1.988 MB / 0.5277 GB, free: 8.832 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008775/0.4764, allocations: 2.394 MB / 0.53 GB, free: 6.441 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007251/0.4836, allocations: 4.048 MB / 0.534 GB, free: 2.383 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4776/0.9612, allocations: 6.062 MB / 0.5399 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0337/0.9949, allocations: 26.66 MB / 0.5659 GB, free: 27.01 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.073e-05/0.9949, allocations: 7.641 kB / 0.5659 GB, free: 27 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.9949, allocations: 0.7812 kB / 0.5659 GB, free: 27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009827/0.9959, allocations: 0 / 0.5659 GB, free: 27 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.05214/1.048, allocations: 15.67 MB / 0.5813 GB, free: 18.8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/1.048, allocations: 15.39 kB / 0.5813 GB, free: 18.8 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007716/1.056, allocations: 1.76 MB / 0.583 GB, free: 17.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03434/1.09, allocations: 6.197 MB / 0.589 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01904/1.109, allocations: 8.307 MB / 0.5971 GB, free: 9.594 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000836/1.11, allocations: 0.9268 MB / 0.5981 GB, free: 9.176 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005802/1.116, allocations: 1.223 MB / 0.5992 GB, free: 8.488 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05468/1.171, allocations: 19.28 MB / 0.6181 GB, free: 5.086 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008146/1.171, allocations: 23.36 kB / 0.6181 GB, free: 5.066 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006115/1.177, allocations: 0.5032 MB / 0.6186 GB, free: 4.574 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008207/1.178, allocations: 0.6582 MB / 0.6192 GB, free: 3.914 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0475/1.226, allocations: 17.01 MB / 0.6358 GB, free: 2.906 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1309/1.357, allocations: 53.9 MB / 0.6885 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02103/1.378, allocations: 10.39 MB / 0.6986 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006829/1.385, allocations: 3.476 MB / 0.702 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01985/1.404, allocations: 7.922 MB / 0.7098 GB, free: 8.797 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.191e-05/1.405, allocations: 73.41 kB / 0.7098 GB, free: 8.715 MB / 0.545 GB Notification: Performance of pre-optimization done (n=361): time 7.584e-06/1.405, allocations: 0 / 0.7098 GB, free: 8.715 MB / 0.545 GB Notification: Performance of matching and sorting (n=403): time 0.04265/1.447, allocations: 17.56 MB / 0.727 GB, free: 7.207 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.429e-05/1.447, allocations: 94.58 kB / 0.7271 GB, free: 7.102 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01083/1.458, allocations: 5.45 MB / 0.7324 GB, free: 1.672 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008121/1.459, allocations: 85.7 kB / 0.7325 GB, free: 1.582 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004899/1.464, allocations: 5.822 MB / 0.7382 GB, free: 11.75 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002066/1.466, allocations: 1.464 MB / 0.7396 GB, free: 10.3 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003217/1.469, allocations: 1.37 MB / 0.7409 GB, free: 8.926 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001371/1.469, allocations: 313.1 kB / 0.7412 GB, free: 8.617 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005356/1.475, allocations: 2.973 MB / 0.7441 GB, free: 5.641 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2177/1.692, allocations: 6.062 MB / 0.7501 GB, free: 198.8 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/1.704, allocations: 9.687 MB / 0.7595 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000163/1.704, allocations: 30.36 kB / 0.7595 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01847/1.722, allocations: 10.1 MB / 0.7694 GB, free: 192.2 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-05/1.723, allocations: 49.95 kB / 0.7695 GB, free: 192.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001781/1.723, allocations: 102.2 kB / 0.7696 GB, free: 192.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002174/1.725, allocations: 0.9464 MB / 0.7705 GB, free: 192 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005497/1.73, allocations: 1.636 MB / 0.7721 GB, free: 191.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009996/1.74, allocations: 9.771 MB / 0.7816 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00571/1.746, allocations: 415.5 kB / 0.782 GB, free: 185.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00124/1.747, allocations: 370.4 kB / 0.7824 GB, free: 185.2 MB / 0.5763 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.007214/1.755, allocations: 4.298 MB / 0.7866 GB, free: 183.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.756, allocations: 0.5673 MB / 0.7871 GB, free: 183.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009739/1.766, allocations: 6.648 MB / 0.7936 GB, free: 178.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/1.766, allocations: 40 kB / 0.7936 GB, free: 178.9 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/1.766, allocations: 11.94 kB / 0.7937 GB, free: 178.9 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.163e-05/1.766, allocations: 23.95 kB / 0.7937 GB, free: 178.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02332/1.789, allocations: 15.51 MB / 0.8088 GB, free: 165.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/1.789, allocations: 11.56 kB / 0.8088 GB, free: 165.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002925/1.792, allocations: 0.7703 MB / 0.8096 GB, free: 165.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/1.794, allocations: 0.7896 MB / 0.8104 GB, free: 164.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002703/1.794, allocations: 95.39 kB / 0.8104 GB, free: 164.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00805/1.802, allocations: 8.917 MB / 0.8192 GB, free: 156.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.802, allocations: 4 kB / 0.8192 GB, free: 156.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01244/1.815, allocations: 9.825 MB / 0.8288 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002896/1.818, allocations: 1.072 MB / 0.8298 GB, free: 146.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.819, allocations: 81.64 kB / 0.8299 GB, free: 146.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002619/1.821, allocations: 223.8 kB / 0.8301 GB, free: 146.3 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004831/1.822, allocations: 298.3 kB / 0.8304 GB, free: 146.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002425/1.822, allocations: 120 kB / 0.8305 GB, free: 145.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005056/1.827, allocations: 3.514 MB / 0.8339 GB, free: 142.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2e-07/1.827, allocations: 0 / 0.8339 GB, free: 142.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007345/1.834, allocations: 1.937 MB / 0.8358 GB, free: 140.5 MB / 0.5763 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.0128/1.847, allocations: 10.54 MB / 0.8461 GB, free: 129.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01016/1.857, allocations: 7.394 MB / 0.8533 GB, free: 122.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/1.857, allocations: 4 kB / 0.8533 GB, free: 122.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004704/1.862, allocations: 3.24 MB / 0.8565 GB, free: 119.1 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005966/1.868, allocations: 1.408 MB / 0.8579 GB, free: 117.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09311/1.961, allocations: 67.51 MB / 0.9238 GB, free: 46.33 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008956/1.97, allocations: 7.034 MB / 0.9307 GB, free: 39.25 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005937/1.976, allocations: 2.198 MB / 0.9328 GB, free: 37.04 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006567/1.983, allocations: 4.526 MB / 0.9372 GB, free: 32.51 MB / 0.5763 GB Notification: Performance of SimCode: time 1.533e-06/1.983, allocations: 1.312 kB / 0.9372 GB, free: 32.51 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.603/4.586, allocations: 159.3 MB / 1.093 GB, free: 106.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.97/25.55, allocations: 11.25 kB / 1.093 GB, free: 106.4 MB / 0.5763 GB " [Timeout remaining time 634] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.217677583917975]