Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.001018/0.001018, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001243/0.001243, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9083/0.9083, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.SMEE_Generator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.489e-05/1.677e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008843/0.00886, allocations: 10.14 MB / 334.7 MB, free: 5.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00608/0.01494, allocations: 3.717 MB / 338.4 MB, free: 2.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007837/0.01572, allocations: 79.5 kB / 338.5 MB, free: 1.941 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.017, allocations: 0.835 MB / 339.3 MB, free: 1.098 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001438/0.01844, allocations: 1.032 MB / 340.4 MB, free: 60 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006717/0.01911, allocations: 0.5224 MB / 340.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001996/0.02111, allocations: 3.344 MB / 344.2 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001546/0.02265, allocations: 1.43 MB / 345.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.02427, allocations: 2.152 MB / 347.8 MB, free: 8.531 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.02548, allocations: 1.562 MB / 349.4 MB, free: 6.965 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000296/0.02578, allocations: 388 kB / 349.8 MB, free: 6.586 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006077/0.02638, allocations: 0.6049 MB / 350.4 MB, free: 5.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006249/0.02701, allocations: 1.106 MB / 351.5 MB, free: 4.871 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000971/0.02798, allocations: 1.185 MB / 352.7 MB, free: 3.684 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002871/0.03085, allocations: 5.13 MB / 357.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.03086, allocations: 0 / 357.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.03086, allocations: 4 kB / 357.8 MB, free: 14.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.844e-05/0.03088, allocations: 0 / 357.8 MB, free: 14.53 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.003729/0.03461, allocations: 3.475 MB / 361.3 MB, free: 11.01 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.03465, allocations: 8.031 kB / 361.3 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003021/0.03496, allocations: 362.9 kB / 361.6 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008232/0.03578, allocations: 466.6 kB / 362.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001945/0.03772, allocations: 1.787 MB / 363.9 MB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-05/0.03782, allocations: 189.4 kB / 364.1 MB, free: 8.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000237/0.03806, allocations: 252.3 kB / 364.3 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003513/0.04157, allocations: 3.384 MB / 367.7 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.637e-05/0.04162, allocations: 3.938 kB / 367.7 MB, free: 4.418 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/0.04178, allocations: 108 kB / 367.8 MB, free: 4.312 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.854e-05/0.04188, allocations: 116.9 kB / 367.9 MB, free: 4.195 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002984/0.04487, allocations: 2.701 MB / 370.6 MB, free: 1.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.055, allocations: 9.283 MB / 379.9 MB, free: 7.863 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.05666, allocations: 1.248 MB / 381.1 MB, free: 6.613 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.05769, allocations: 0.9834 MB / 382.1 MB, free: 5.633 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001552/0.05784, allocations: 56.84 kB / 382.2 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.05787, allocations: 51.55 kB / 382.2 MB, free: 5.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 3.036e-06/0.05788, allocations: 0 / 382.2 MB, free: 5.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.009781/0.06766, allocations: 7.062 MB / 389.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.06769, allocations: 64.72 kB / 389.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001778/0.06947, allocations: 1.916 MB / 391.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.45e-05/0.06954, allocations: 45.7 kB / 391.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005977/0.07013, allocations: 1.283 MB / 392.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002472/0.07038, allocations: 483.8 kB / 393.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.07067, allocations: 291.5 kB / 393.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.75e-05/0.07074, allocations: 305.1 kB / 393.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008558/0.0716, allocations: 0.8159 MB / 394.5 MB, free: 9.203 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.07296, allocations: 1.308 MB / 395.8 MB, free: 7.676 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/0.07491, allocations: 2.262 MB / 398 MB, free: 5.203 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.07491, allocations: 4 kB / 398.1 MB, free: 5.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.002741/0.07766, allocations: 2.728 MB / 400.8 MB, free: 2.453 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.07768, allocations: 12 kB / 400.8 MB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.07769, allocations: 16 kB / 400.8 MB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005758/0.07827, allocations: 414.4 kB / 401.2 MB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007508/0.07902, allocations: 399.3 kB / 401.6 MB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003996/0.08301, allocations: 5.544 MB / 407.1 MB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007375/0.08375, allocations: 131.8 kB / 407.3 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.844e-05/0.08384, allocations: 71.98 kB / 407.3 MB, free: 11.65 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008885/0.08473, allocations: 0.7929 MB / 408.1 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/0.08494, allocations: 206.7 kB / 408.3 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.08766, allocations: 2.3 MB / 410.6 MB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/0.08768, allocations: 19.98 kB / 410.7 MB, free: 8.301 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.08768, allocations: 8 kB / 410.7 MB, free: 8.293 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.08769, allocations: 11.86 kB / 410.7 MB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005149/0.09284, allocations: 4.85 MB / 415.5 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.09285, allocations: 7.938 kB / 415.5 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005339/0.09338, allocations: 252.2 kB / 415.8 MB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006586/0.09404, allocations: 458.1 kB / 416.2 MB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.153e-05/0.0941, allocations: 35.98 kB / 416.3 MB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004725/0.09883, allocations: 6.983 MB / 423.2 MB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.09883, allocations: 4 kB / 423.3 MB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003724/0.1026, allocations: 3.489 MB / 426.7 MB, free: 7.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005672/0.1031, allocations: 386.6 kB / 427.1 MB, free: 7.281 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.1033, allocations: 35.97 kB / 427.2 MB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000588/0.1039, allocations: 103.9 kB / 427.3 MB, free: 7.145 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.104, allocations: 112.7 kB / 427.4 MB, free: 7.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.867e-05/0.1041, allocations: 44.06 kB / 427.4 MB, free: 6.988 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001339/0.1054, allocations: 1.303 MB / 428.7 MB, free: 5.695 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1054, allocations: 4 kB / 428.7 MB, free: 5.691 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001301/0.1067, allocations: 0.543 MB / 429.3 MB, free: 5.148 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (2,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.004062/0.1108, allocations: 4.166 MB / 433.4 MB, free: 0.8906 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002348/0.1132, allocations: 2.263 MB / 435.7 MB, free: 14.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1132, allocations: 4 kB / 435.7 MB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001326/0.1145, allocations: 1.447 MB / 437.1 MB, free: 13.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.1156, allocations: 451.1 kB / 437.6 MB, free: 12.67 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1532/0.2688, allocations: 20.36 MB / 457.9 MB, free: 111.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.2699, allocations: 1.451 MB / 459.4 MB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001127/0.2711, allocations: 429.4 kB / 459.8 MB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008398/0.2719, allocations: 0.999 MB / 460.8 MB, free: 110 MB / 410.7 MB Notification: Performance of SimCode: time 1.923e-06/0.2719, allocations: 3.906 kB / 460.8 MB, free: 110 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06162/0.3335, allocations: 52.22 MB / 0.501 GB, free: 60.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/8.511, allocations: 3.938 kB / 0.501 GB, free: 60.39 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 13.409205541945994]