Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 51.92 kB / 365.7 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/0.1005, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01536/0.1158, allocations: 11.87 MB / 429.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008001/0.1238, allocations: 3.932 MB / 433.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.1256, allocations: 67.69 kB / 433.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.1284, allocations: 0.8852 MB / 434.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003477/0.1319, allocations: 1.013 MB / 435.6 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001692/0.1335, allocations: 0.5227 MB / 436.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004992/0.1385, allocations: 3.444 MB / 439.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003546/0.1421, allocations: 1.955 MB / 441.5 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002618/0.1447, allocations: 1.546 MB / 443 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003428/0.1481, allocations: 1.981 MB / 445 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001186/0.1493, allocations: 408 kB / 445.4 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.1512, allocations: 0.6675 MB / 446.1 MB, free: 172 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1946/0.3458, allocations: 1.152 MB / 447.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003172/0.349, allocations: 1.842 MB / 449.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008433/0.3574, allocations: 5.383 MB / 454.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3574, allocations: 0 / 454.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3574, allocations: 1.375 kB / 454.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002188/0.3576, allocations: 2.906 kB / 454.4 MB, free: 12.21 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.01301/0.3707, allocations: 3.801 MB / 458.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.3707, allocations: 10 kB / 458.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001568/0.3723, allocations: 383.8 kB / 458.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002551/0.3748, allocations: 456.1 kB / 459.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00563/0.3804, allocations: 1.971 MB / 461 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002807/0.3807, allocations: 210.9 kB / 461.3 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001219/0.3819, allocations: 263.2 kB / 461.5 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00964/0.3916, allocations: 3.529 MB / 465 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002559/0.3918, allocations: 7.719 kB / 465 MB, free: 9.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007184/0.3926, allocations: 112.4 kB / 465.2 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001691/0.3927, allocations: 121 kB / 465.3 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006764/0.3995, allocations: 2.966 MB / 468.2 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02115/0.4206, allocations: 11 MB / 479.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003093/0.4237, allocations: 2.198 MB / 481.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002167/0.4259, allocations: 1.099 MB / 482.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003309/0.4262, allocations: 208.9 kB / 482.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/0.4263, allocations: 46.12 kB / 482.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.597e-06/0.4263, allocations: 0 / 482.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=148): time 0.01705/0.4433, allocations: 7.561 MB / 490.3 MB, free: 10.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.4434, allocations: 67.84 kB / 490.4 MB, free: 10.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00367/0.4471, allocations: 1.972 MB / 492.4 MB, free: 8.945 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002054/0.4473, allocations: 52.98 kB / 492.4 MB, free: 8.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.4485, allocations: 1.347 MB / 493.8 MB, free: 7.578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005938/0.4491, allocations: 0.5321 MB / 494.3 MB, free: 7.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007057/0.4498, allocations: 327.5 kB / 494.6 MB, free: 6.727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.4499, allocations: 301.1 kB / 494.9 MB, free: 6.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/0.4516, allocations: 0.8862 MB / 495.8 MB, free: 5.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002111/0.4537, allocations: 1.373 MB / 497.2 MB, free: 3.973 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003859/0.4575, allocations: 2.372 MB / 499.6 MB, free: 1.453 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.367e-05/0.4576, allocations: 8 kB / 499.6 MB, free: 1.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006017/0.4636, allocations: 2.983 MB / 0.4908 GB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.4636, allocations: 15.94 kB / 0.4908 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.135e-05/0.4636, allocations: 20.5 kB / 0.4908 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.4649, allocations: 467.4 kB / 0.4913 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.4666, allocations: 423.3 kB / 0.4917 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007793/0.4743, allocations: 6.102 MB / 0.4976 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/0.4765, allocations: 123.8 kB / 0.4977 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003298/0.4768, allocations: 79.98 kB / 0.4978 GB, free: 7.102 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * 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,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002083/0.4789, allocations: 0.8517 MB / 0.4986 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008662/0.4797, allocations: 222.6 kB / 0.4989 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005518/0.4853, allocations: 2.576 MB / 0.5014 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-05/0.4853, allocations: 20 kB / 0.5014 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.69e-05/0.4853, allocations: 7.875 kB / 0.5014 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.953e-05/0.4853, allocations: 7.969 kB / 0.5014 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/0.4983, allocations: 5.606 MB / 0.5069 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.4983, allocations: 4 kB / 0.5069 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001383/0.4997, allocations: 284.9 kB / 0.5072 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/0.5012, allocations: 0.4921 MB / 0.5076 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001725/0.5014, allocations: 39.97 kB / 0.5077 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009656/0.511, allocations: 7.677 MB / 0.5152 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.511, allocations: 7.844 kB / 0.5152 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007642/0.5187, allocations: 3.844 MB / 0.5189 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/0.5203, allocations: 491.5 kB / 0.5194 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006851/0.521, allocations: 36 kB / 0.5194 GB, free: 444 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001654/0.5226, allocations: 99.81 kB / 0.5195 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/0.523, allocations: 124.6 kB / 0.5196 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/0.5231, allocations: 39.98 kB / 0.5197 GB, free: 184 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003131/0.5263, allocations: 1.356 MB / 0.521 GB, free: 14.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5263, allocations: 0 / 0.521 GB, free: 14.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00297/0.5292, allocations: 0.5888 MB / 0.5216 GB, free: 14.21 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * 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,16,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.007975/0.5372, allocations: 4.516 MB / 0.526 GB, free: 9.637 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004933/0.5421, allocations: 2.519 MB / 0.5285 GB, free: 7.133 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.5421, allocations: 0 / 0.5285 GB, free: 7.133 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00297/0.5451, allocations: 1.536 MB / 0.53 GB, free: 5.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/0.5486, allocations: 0.4948 MB / 0.5304 GB, free: 5.113 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04475/0.5934, allocations: 21.73 MB / 0.5517 GB, free: 14.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002909/0.5963, allocations: 2.132 MB / 0.5537 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001771/0.598, allocations: 476.9 kB / 0.5542 GB, free: 12.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/0.6, allocations: 1.058 MB / 0.5552 GB, free: 11.12 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6, allocations: 0 / 0.5552 GB, free: 11.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1166/0.7166, allocations: 53.66 MB / 0.6076 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.47/15.19, allocations: 10.41 kB / 0.6076 GB, free: 5.973 MB / 0.4981 GB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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: 23.13726264005527]