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.0008562/0.0008562, allocations: 76.08 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.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.0007531/0.0007531, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8823/0.8823, allocations: 173.4 MB / 200.5 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 1.473e-06/1.473e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.477e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01174/0.01175, allocations: 10.38 MB / 328.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006547/0.0183, allocations: 3.718 MB / 332.5 MB, free: 8.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00137/0.01967, allocations: 87.38 kB / 332.6 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.02185, allocations: 0.8466 MB / 333.5 MB, free: 7.242 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003436/0.02529, allocations: 1.063 MB / 334.5 MB, free: 6.172 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.02653, allocations: 0.5341 MB / 335.1 MB, free: 5.637 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003528/0.03006, allocations: 3.562 MB / 338.6 MB, free: 2.062 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001845/0.0319, allocations: 1.491 MB / 340.1 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002535/0.03444, allocations: 2.292 MB / 342.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002074/0.03651, allocations: 1.675 MB / 344.1 MB, free: 12.53 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009017/0.03741, allocations: 416 kB / 344.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009545/0.03837, allocations: 0.6322 MB / 345.1 MB, free: 11.49 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007653/0.03913, allocations: 1.188 MB / 346.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001481/0.04061, allocations: 1.263 MB / 347.6 MB, free: 9.031 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00383/0.04445, allocations: 5.445 MB / 353 MB, free: 3.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.04445, allocations: 3.938 kB / 353 MB, free: 3.566 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.04445, allocations: 0 / 353 MB, free: 3.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.034e-05/0.04453, allocations: 0 / 353 MB, free: 3.566 MB / 314.7 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.004849/0.04938, allocations: 3.687 MB / 356.7 MB, free: 15.83 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.04943, allocations: 12.86 kB / 356.7 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003447/0.04977, allocations: 388.1 kB / 357.1 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008216/0.05059, allocations: 450.6 kB / 357.6 MB, free: 14.99 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002434/0.05303, allocations: 1.894 MB / 359.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.05313, allocations: 201.8 kB / 359.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002658/0.0534, allocations: 275.9 kB / 359.9 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004122/0.05752, allocations: 3.65 MB / 363.6 MB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.694e-05/0.05757, allocations: 3.984 kB / 363.6 MB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001729/0.05774, allocations: 108 kB / 363.7 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.584e-05/0.05784, allocations: 117.3 kB / 363.8 MB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003477/0.06131, allocations: 2.972 MB / 366.8 MB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01168/0.07299, allocations: 9.966 MB / 376.7 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001754/0.07474, allocations: 1.508 MB / 378.2 MB, free: 9.805 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/0.07603, allocations: 1.102 MB / 379.3 MB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001881/0.07622, allocations: 53.27 kB / 379.4 MB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.07625, allocations: 47.88 kB / 379.4 MB, free: 8.598 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 4.148e-06/0.07625, allocations: 0 / 379.4 MB, free: 8.598 MB / 346.7 MB Notification: Performance of matching and sorting (n=148): time 0.01047/0.08673, allocations: 7.084 MB / 386.5 MB, free: 1.488 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.08678, allocations: 72.66 kB / 386.6 MB, free: 1.406 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002126/0.0889, allocations: 1.998 MB / 388.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.331e-05/0.08898, allocations: 53.7 kB / 388.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.0901, allocations: 1.346 MB / 390 MB, free: 13.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003315/0.09044, allocations: 0.519 MB / 390.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003813/0.09082, allocations: 327.4 kB / 390.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.755e-05/0.09091, allocations: 309.1 kB / 391.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.09193, allocations: 0.8901 MB / 392 MB, free: 11.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.09316, allocations: 1.372 MB / 393.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002314/0.09548, allocations: 2.385 MB / 395.8 MB, free: 7.727 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.09549, allocations: 4 kB / 395.8 MB, free: 7.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00381/0.0993, allocations: 2.904 MB / 398.7 MB, free: 4.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.09932, allocations: 14.97 kB / 398.7 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.09934, allocations: 19.94 kB / 398.7 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007732/0.1001, allocations: 462.5 kB / 399.2 MB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008988/0.101, allocations: 427.3 kB / 399.6 MB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005191/0.1062, allocations: 5.841 MB / 405.4 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/0.1078, allocations: 119.9 kB / 405.5 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001913/0.108, allocations: 75.98 kB / 405.6 MB, free: 13.63 MB / 378.7 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.001419/0.1095, allocations: 0.8602 MB / 406.5 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004426/0.1099, allocations: 218.6 kB / 406.7 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003065/0.113, allocations: 2.496 MB / 409.2 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-05/0.113, allocations: 20 kB / 409.2 MB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.113, allocations: 7.938 kB / 409.2 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.113, allocations: 7.969 kB / 409.2 MB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006931/0.1199, allocations: 5.191 MB / 414.4 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.12, allocations: 4 kB / 414.4 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006706/0.1206, allocations: 280 kB / 414.7 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008708/0.1215, allocations: 497.1 kB / 415.2 MB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.241e-05/0.1216, allocations: 39.98 kB / 415.2 MB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005913/0.1275, allocations: 7.322 MB / 422.5 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1275, allocations: 7.938 kB / 422.5 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004847/0.1323, allocations: 3.749 MB / 426.3 MB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.1334, allocations: 418.3 kB / 426.7 MB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.1336, allocations: 39.98 kB / 426.7 MB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006931/0.1343, allocations: 95.89 kB / 426.8 MB, free: 7.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/0.1345, allocations: 125 kB / 427 MB, free: 7.719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.001e-05/0.1346, allocations: 43.98 kB / 427 MB, free: 7.676 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0016/0.1362, allocations: 1.36 MB / 428.4 MB, free: 6.293 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1362, allocations: 0 / 428.4 MB, free: 6.293 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001622/0.1378, allocations: 0.5897 MB / 428.9 MB, free: 5.703 MB / 394.7 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.004975/0.1428, allocations: 4.424 MB / 433.4 MB, free: 1.199 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003105/0.1459, allocations: 2.451 MB / 435.8 MB, free: 14.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.1459, allocations: 0 / 435.8 MB, free: 14.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.1476, allocations: 1.549 MB / 437.4 MB, free: 13.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.1494, allocations: 496.6 kB / 437.9 MB, free: 12.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1642/0.3136, allocations: 21.55 MB / 459.4 MB, free: 118.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009739/0.3145, allocations: 1.572 MB / 461 MB, free: 118.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008286/0.3154, allocations: 473.5 kB / 461.4 MB, free: 118.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007581/0.3161, allocations: 1.059 MB / 462.5 MB, free: 117.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.664e-06/0.3161, allocations: 0 / 462.5 MB, free: 117.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06487/0.381, allocations: 56.81 MB / 0.5071 GB, free: 62.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.69/9.071, allocations: 7.422 kB / 0.5071 GB, free: 62.31 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 14.185934208333492]