Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.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.001401/0.001401, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001611/0.001611, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.446/1.446, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 55.92 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3168, allocations: 53.37 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01211/0.3289, allocations: 9.635 MB / 441.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007098/0.336, allocations: 3.474 MB / 445 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002092/0.3381, allocations: 87.44 kB / 445.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002513/0.3406, allocations: 0.8073 MB / 445.9 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.3437, allocations: 0.9204 MB / 446.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.345, allocations: 467.4 kB / 447.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003787/0.3488, allocations: 2.942 MB / 450.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00217/0.351, allocations: 1.568 MB / 451.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002052/0.353, allocations: 1.425 MB / 453.2 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002697/0.3557, allocations: 1.802 MB / 455 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006477/0.3564, allocations: 372 kB / 455.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009361/0.3573, allocations: 487.8 kB / 455.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0011/0.3584, allocations: 1.091 MB / 456.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.3601, allocations: 1.346 MB / 458.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005235/0.3654, allocations: 4.932 MB / 463.2 MB, free: 7.145 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3654, allocations: 7.875 kB / 463.2 MB, free: 7.137 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3654, allocations: 4 kB / 463.2 MB, free: 7.133 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001266/0.3655, allocations: 0 / 463.2 MB, free: 7.133 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007297/0.3728, allocations: 3.398 MB / 466.6 MB, free: 3.684 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.3728, allocations: 12.03 kB / 466.6 MB, free: 3.672 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.285e-05/0.3729, allocations: 69.22 kB / 466.7 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004885/0.3734, allocations: 367 kB / 467.1 MB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009549/0.3744, allocations: 362.8 kB / 467.4 MB, free: 2.879 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003443/0.3778, allocations: 1.752 MB / 469.2 MB, free: 1.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.378, allocations: 189 kB / 469.3 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004166/0.3784, allocations: 251.9 kB / 469.6 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005817/0.3842, allocations: 3.358 MB / 472.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-05/0.3843, allocations: 11.95 kB / 473 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.3845, allocations: 104 kB / 473.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/0.3846, allocations: 124.9 kB / 473.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004641/0.3893, allocations: 2.744 MB / 475.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01532/0.4046, allocations: 9.433 MB / 485.4 MB, free: 412 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.4063, allocations: 1.067 MB / 486.4 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/0.4075, allocations: 0.7071 MB / 487.1 MB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002239/0.4077, allocations: 52.89 kB / 487.2 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.4077, allocations: 47.56 kB / 487.2 MB, free: 14.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.086e-06/0.4077, allocations: 0 / 487.2 MB, free: 14.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01495/0.4227, allocations: 6.645 MB / 493.9 MB, free: 7.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.4227, allocations: 64.41 kB / 493.9 MB, free: 7.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002743/0.4255, allocations: 1.794 MB / 495.7 MB, free: 5.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001915/0.4257, allocations: 45.7 kB / 495.8 MB, free: 5.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.4267, allocations: 1.306 MB / 497.1 MB, free: 4.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004682/0.4272, allocations: 448.2 kB / 497.5 MB, free: 4.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000507/0.4277, allocations: 299.5 kB / 497.8 MB, free: 3.848 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.4278, allocations: 305.1 kB / 498.1 MB, free: 3.547 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.4291, allocations: 0.7769 MB / 498.9 MB, free: 2.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001601/0.4307, allocations: 1.288 MB / 0.4885 GB, free: 1.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003038/0.4337, allocations: 2.214 MB / 0.4906 GB, free: 14.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.4337, allocations: 4 kB / 0.4906 GB, free: 14.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004119/0.4378, allocations: 2.487 MB / 0.4931 GB, free: 12.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.4379, allocations: 12 kB / 0.4931 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.801e-05/0.4379, allocations: 20 kB / 0.4931 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006401/0.4385, allocations: 239.7 kB / 0.4933 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.44, allocations: 423.3 kB / 0.4937 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.4428, allocations: 3.023 MB / 0.4967 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/0.4442, allocations: 131.8 kB / 0.4968 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/0.4443, allocations: 71.98 kB / 0.4969 GB, free: 8.156 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001366/0.4457, allocations: 0.8251 MB / 0.4977 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003971/0.4461, allocations: 194.7 kB / 0.4979 GB, free: 7.129 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003379/0.4494, allocations: 2.035 MB / 0.4998 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.4495, allocations: 12 kB / 0.4999 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4495, allocations: 4 kB / 0.4999 GB, free: 5.055 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.4495, allocations: 12.05 kB / 0.4999 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007522/0.457, allocations: 4.436 MB / 0.5042 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.457, allocations: 4 kB / 0.5042 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.4581, allocations: 267.9 kB / 0.5045 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005511/0.4587, allocations: 207.2 kB / 0.5047 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-05/0.4587, allocations: 27.94 kB / 0.5047 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00266/0.4614, allocations: 2.996 MB / 0.5076 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4614, allocations: 0 / 0.5076 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00464/0.466, allocations: 3.148 MB / 0.5107 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000938/0.467, allocations: 366.5 kB / 0.511 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002722/0.4673, allocations: 27.94 kB / 0.5111 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009003/0.4682, allocations: 91.88 kB / 0.5111 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.4683, allocations: 76.84 kB / 0.5112 GB, free: 9.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.157e-05/0.4684, allocations: 39.92 kB / 0.5113 GB, free: 8.98 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001795/0.4702, allocations: 1.232 MB / 0.5125 GB, free: 7.758 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4702, allocations: 0 / 0.5125 GB, free: 7.758 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001492/0.4717, allocations: 483.9 kB / 0.5129 GB, free: 7.285 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.005034/0.4767, allocations: 3.788 MB / 0.5166 GB, free: 3.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.4804, allocations: 2.117 MB / 0.5187 GB, free: 1.285 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.4804, allocations: 0 / 0.5187 GB, free: 1.285 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001808/0.4822, allocations: 1.126 MB / 0.5198 GB, free: 128 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/0.4845, allocations: 496.6 kB / 0.5203 GB, free: 15.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2429/0.7274, allocations: 18.8 MB / 0.5386 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001791/0.7292, allocations: 1.433 MB / 0.54 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001313/0.7305, allocations: 0.5057 MB / 0.5405 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.7316, allocations: 1.017 MB / 0.5415 GB, free: 100.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/0.7316, allocations: 0 / 0.5415 GB, free: 100.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07842/0.81, allocations: 49.37 MB / 0.5897 GB, free: 56.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.71, allocations: 10.81 kB / 0.5897 GB, free: 56.56 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 24.255074309068732]