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.001301/0.001301, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.001523/0.001523, allocations: 212.1 kB / 23.74 MB, free: 4.66 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.432/1.432, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.001933/0.001933, allocations: 59.89 kB / 377.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2784, allocations: 53.41 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04918/0.3276, allocations: 42.08 MB / 473.3 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02682/0.3545, allocations: 11.26 MB / 484.6 MB, free: 1.117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009588/0.364, allocations: 381.9 kB / 484.9 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0238/0.3878, allocations: 8.926 MB / 493.9 MB, free: 7.793 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01534/0.4032, allocations: 3.725 MB / 497.6 MB, free: 4.051 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01062/0.4138, allocations: 2.499 MB / 0.4884 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02273/0.4365, allocations: 13.52 MB / 0.5016 GB, free: 3.992 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04029/0.4768, allocations: 17.62 MB / 0.5188 GB, free: 2.215 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01394/0.4908, allocations: 7.157 MB / 0.5258 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.015/0.5058, allocations: 8.121 MB / 0.5337 GB, free: 2.891 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006317/0.5121, allocations: 1.992 MB / 0.5357 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.5194/1.031, allocations: 2.417 MB / 0.538 GB, free: 30.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007933/1.039, allocations: 4.06 MB / 0.542 GB, free: 30.71 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02051/1.06, allocations: 7.779 MB / 0.5496 GB, free: 29.77 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03783/1.098, allocations: 26.55 MB / 0.5755 GB, free: 21.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/1.098, allocations: 5.656 kB / 0.5755 GB, free: 21.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.005e-06/1.098, allocations: 0 / 0.5755 GB, free: 21.67 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.00104/1.099, allocations: 0 / 0.5755 GB, free: 21.67 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.05296/1.152, allocations: 15.69 MB / 0.5908 GB, free: 11.65 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/1.152, allocations: 11.75 kB / 0.5908 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007982/1.16, allocations: 1.755 MB / 0.5926 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03328/1.193, allocations: 6.202 MB / 0.5986 GB, free: 7.543 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02002/1.213, allocations: 8.332 MB / 0.6068 GB, free: 188 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001108/1.214, allocations: 0.9405 MB / 0.6077 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006003/1.22, allocations: 1.223 MB / 0.6089 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05844/1.279, allocations: 19.05 MB / 0.6275 GB, free: 10.93 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007198/1.279, allocations: 23.89 kB / 0.6275 GB, free: 10.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005373/1.285, allocations: 0.506 MB / 0.628 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008279/1.286, allocations: 0.6543 MB / 0.6286 GB, free: 9.75 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04873/1.334, allocations: 17.07 MB / 0.6453 GB, free: 8.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1406/1.475, allocations: 58.77 MB / 0.7027 GB, free: 13.64 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0206/1.495, allocations: 10.49 MB / 0.7129 GB, free: 4.859 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007388/1.503, allocations: 3.477 MB / 0.7163 GB, free: 1.367 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02297/1.526, allocations: 8.793 MB / 0.7249 GB, free: 8.695 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.714e-05/1.526, allocations: 73.39 kB / 0.725 GB, free: 8.613 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 6.582e-06/1.526, allocations: 4 kB / 0.725 GB, free: 8.609 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.04423/1.57, allocations: 17.56 MB / 0.7421 GB, free: 7.102 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/1.57, allocations: 90.58 kB / 0.7422 GB, free: 7 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01334/1.584, allocations: 5.266 MB / 0.7474 GB, free: 1.754 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009446/1.584, allocations: 93.7 kB / 0.7475 GB, free: 1.656 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2627/1.847, allocations: 5.81 MB / 0.7531 GB, free: 201.4 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001711/1.849, allocations: 1.468 MB / 0.7546 GB, free: 200.5 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002908/1.852, allocations: 1.375 MB / 0.7559 GB, free: 200.3 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.944e-05/1.852, allocations: 306.5 kB / 0.7562 GB, free: 200 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005137/1.857, allocations: 2.973 MB / 0.7591 GB, free: 200 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00644/1.863, allocations: 6.026 MB / 0.765 GB, free: 196.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/1.875, allocations: 9.677 MB / 0.7744 GB, free: 189.2 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000123/1.875, allocations: 28.97 kB / 0.7745 GB, free: 189.2 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01853/1.893, allocations: 10.11 MB / 0.7843 GB, free: 185.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/1.894, allocations: 53.56 kB / 0.7844 GB, free: 185.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001815/1.894, allocations: 105.8 kB / 0.7845 GB, free: 185.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0023/1.896, allocations: 0.9458 MB / 0.7854 GB, free: 184.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005867/1.902, allocations: 1.631 MB / 0.787 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/1.912, allocations: 9.905 MB / 0.7967 GB, free: 178 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005795/1.918, allocations: 410.7 kB / 0.7971 GB, free: 177.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001281/1.92, allocations: 369.3 kB / 0.7974 GB, free: 177.8 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.008885/1.928, allocations: 4.301 MB / 0.8016 GB, free: 175.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001778/1.93, allocations: 0.5779 MB / 0.8022 GB, free: 174.8 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/1.943, allocations: 6.641 MB / 0.8087 GB, free: 169.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/1.943, allocations: 40 kB / 0.8087 GB, free: 169.2 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.052e-05/1.943, allocations: 12 kB / 0.8087 GB, free: 169.2 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.381e-05/1.944, allocations: 23.3 kB / 0.8087 GB, free: 169.2 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03637/1.98, allocations: 16.29 MB / 0.8247 GB, free: 155.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.763e-05/1.98, allocations: 4 kB / 0.8247 GB, free: 155.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003601/1.984, allocations: 0.7723 MB / 0.8254 GB, free: 154.8 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002195/1.986, allocations: 0.7965 MB / 0.8262 GB, free: 154 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007406/1.986, allocations: 91.97 kB / 0.8263 GB, free: 153.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00917/1.996, allocations: 9.041 MB / 0.8351 GB, free: 144.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/1.996, allocations: 4 kB / 0.8351 GB, free: 144.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/2.011, allocations: 9.823 MB / 0.8447 GB, free: 134.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003531/2.015, allocations: 1.074 MB / 0.8457 GB, free: 133.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001887/2.017, allocations: 72 kB / 0.8458 GB, free: 133.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003619/2.02, allocations: 227.8 kB / 0.846 GB, free: 133.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008775/2.021, allocations: 294.6 kB / 0.8463 GB, free: 132.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005025/2.022, allocations: 120 kB / 0.8464 GB, free: 132.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007102/2.029, allocations: 3.51 MB / 0.8499 GB, free: 129.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4.41e-07/2.029, allocations: 0 / 0.8499 GB, free: 129.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009162/2.038, allocations: 1.944 MB / 0.8518 GB, free: 127.4 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.01731/2.055, allocations: 10.55 MB / 0.8621 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01242/2.068, allocations: 7.381 MB / 0.8693 GB, free: 109.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/2.068, allocations: 8.188 kB / 0.8693 GB, free: 109.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005968/2.074, allocations: 3.239 MB / 0.8724 GB, free: 106 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009014/2.083, allocations: 1.42 MB / 0.8738 GB, free: 104.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1322/2.215, allocations: 67.53 MB / 0.9398 GB, free: 33.16 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01467/2.23, allocations: 7.424 MB / 0.947 GB, free: 25.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007111/2.237, allocations: 2.194 MB / 0.9492 GB, free: 23.49 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007659/2.244, allocations: 4.533 MB / 0.9536 GB, free: 18.96 MB / 0.5763 GB Notification: Performance of SimCode: time 1.784e-06/2.244, allocations: 0 / 0.9536 GB, free: 18.96 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4736/2.718, allocations: 161.1 MB / 1.111 GB, free: 92.93 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.33/27.04, allocations: 6.812 kB / 1.111 GB, free: 92.92 MB / 0.5763 GB " [Timeout remaining time 633] (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.44610315281898]