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.001366/0.001366, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001452/0.001452, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.416/1.416, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.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 0.001418/0.001418, allocations: 55.86 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.282, allocations: 53.36 MB / 431.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01496/0.2969, allocations: 11.62 MB / 442.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008885/0.3058, allocations: 3.952 MB / 446.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00256/0.3084, allocations: 79.5 kB / 446.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002634/0.311, allocations: 0.8733 MB / 447.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003689/0.3147, allocations: 1.002 MB / 448.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001429/0.3161, allocations: 0.5187 MB / 449.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004913/0.321, allocations: 3.238 MB / 452.4 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00227/0.3233, allocations: 1.477 MB / 453.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002355/0.3257, allocations: 1.476 MB / 455.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003014/0.3287, allocations: 1.86 MB / 457.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006302/0.3293, allocations: 388 kB / 457.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.3306, allocations: 0.6791 MB / 458.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.3317, allocations: 1.087 MB / 459.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001973/0.3337, allocations: 1.73 MB / 461.1 MB, free: 8.711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005935/0.3396, allocations: 5.072 MB / 466.2 MB, free: 3.621 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3396, allocations: 0 / 466.2 MB, free: 3.621 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3396, allocations: 0 / 466.2 MB, free: 3.621 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001227/0.3398, allocations: 0 / 466.2 MB, free: 3.621 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.009162/0.3489, allocations: 3.503 MB / 469.7 MB, free: 68 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.349, allocations: 11.97 kB / 469.7 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005404/0.3495, allocations: 362.9 kB / 470.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001605/0.3511, allocations: 462.7 kB / 470.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003522/0.3546, allocations: 1.788 MB / 472.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.3548, allocations: 193 kB / 472.5 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003657/0.3552, allocations: 248 kB / 472.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/0.3606, allocations: 3.251 MB / 476 MB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.56e-05/0.3606, allocations: 11.94 kB / 476 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.3609, allocations: 108 kB / 476.1 MB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001391/0.361, allocations: 116.9 kB / 476.2 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004646/0.3656, allocations: 2.697 MB / 478.9 MB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01687/0.3825, allocations: 10.11 MB / 489 MB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002119/0.3846, allocations: 1.252 MB / 490.3 MB, free: 11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.3864, allocations: 0.9719 MB / 491.2 MB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002437/0.3866, allocations: 60.94 kB / 491.3 MB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/0.3866, allocations: 43.56 kB / 491.3 MB, free: 9.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 2.765e-06/0.3866, allocations: 0 / 491.3 MB, free: 9.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01757/0.4042, allocations: 7.081 MB / 498.4 MB, free: 2.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.4043, allocations: 68.72 kB / 498.5 MB, free: 2.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002892/0.4072, allocations: 1.885 MB / 0.4887 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.4073, allocations: 45.7 kB / 0.4887 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/0.4083, allocations: 1.28 MB / 0.4899 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004437/0.4088, allocations: 495.9 kB / 0.4904 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004624/0.4092, allocations: 291.5 kB / 0.4907 GB, free: 14.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4094, allocations: 301.1 kB / 0.491 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.4108, allocations: 0.8159 MB / 0.4918 GB, free: 13.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.4126, allocations: 1.312 MB / 0.4931 GB, free: 12.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/0.4159, allocations: 2.258 MB / 0.4953 GB, free: 9.605 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/0.4159, allocations: 8 kB / 0.4953 GB, free: 9.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004984/0.4209, allocations: 2.736 MB / 0.4979 GB, free: 6.848 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.4209, allocations: 8 kB / 0.498 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.764e-05/0.4209, allocations: 19.94 kB / 0.498 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.422, allocations: 414.5 kB / 0.4984 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.4234, allocations: 403.3 kB / 0.4988 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006481/0.4299, allocations: 5.591 MB / 0.5042 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/0.4317, allocations: 123.8 kB / 0.5043 GB, free: 72 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.4318, allocations: 71.98 kB / 0.5044 GB, free: 0 / 414.1 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.001552/0.4334, allocations: 0.7901 MB / 0.5052 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004751/0.4339, allocations: 206.8 kB / 0.5054 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004259/0.4381, allocations: 2.312 MB / 0.5076 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.182e-05/0.4382, allocations: 19.94 kB / 0.5076 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.4382, allocations: 4 kB / 0.5076 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.4382, allocations: 11.97 kB / 0.5077 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009617/0.4478, allocations: 5.146 MB / 0.5127 GB, free: 7.359 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.4478, allocations: 11.94 kB / 0.5127 GB, free: 7.348 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.4489, allocations: 252.2 kB / 0.5129 GB, free: 7.102 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/0.4501, allocations: 465 kB / 0.5134 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.443e-05/0.4502, allocations: 31.98 kB / 0.5134 GB, free: 6.609 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007961/0.4582, allocations: 7.026 MB / 0.5203 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.4582, allocations: 7.938 kB / 0.5203 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006559/0.4647, allocations: 3.508 MB / 0.5237 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002002/0.4667, allocations: 382.6 kB / 0.5241 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003407/0.4671, allocations: 35.98 kB / 0.5241 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.4683, allocations: 95.89 kB / 0.5242 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003697/0.4687, allocations: 116.7 kB / 0.5243 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.4688, allocations: 47.92 kB / 0.5244 GB, free: 10.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002299/0.4711, allocations: 1.299 MB / 0.5256 GB, free: 9.684 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4711, allocations: 0 / 0.5256 GB, free: 9.684 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002108/0.4732, allocations: 0.5507 MB / 0.5262 GB, free: 9.133 MB / 446.1 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.006637/0.4798, allocations: 4.158 MB / 0.5302 GB, free: 4.871 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004444/0.4843, allocations: 2.263 MB / 0.5324 GB, free: 2.586 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/0.4843, allocations: 4.188 kB / 0.5324 GB, free: 2.582 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00268/0.487, allocations: 1.447 MB / 0.5338 GB, free: 1.094 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.4895, allocations: 458.3 kB / 0.5343 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2744/0.7639, allocations: 20.39 MB / 0.5542 GB, free: 92.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00126/0.7652, allocations: 2.008 MB / 0.5562 GB, free: 91.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001042/0.7662, allocations: 438.9 kB / 0.5566 GB, free: 90.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009596/0.7672, allocations: 0.9952 MB / 0.5575 GB, free: 89.62 MB / 446.1 MB Notification: Performance of SimCode: time 9.51e-07/0.7672, allocations: 0 / 0.5575 GB, free: 89.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08666/0.8538, allocations: 50.65 MB / 0.607 GB, free: 39.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.03/16.88, allocations: 4 kB / 0.607 GB, free: 39.43 MB / 446.1 MB " [Timeout remaining time 643] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 24.492270617978647]