Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.00128/0.00128, allocations: 123.9 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.002072/0.002072, allocations: 185.2 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.417/1.417, allocations: 225.6 MB / 249.1 MB, free: 3.613 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.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 55.89 kB / 365.7 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1115, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01437/0.1258, allocations: 12.21 MB / 430 MB, free: 364 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006696/0.1325, allocations: 3.276 MB / 433.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.1342, allocations: 35.94 kB / 433.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001993/0.1362, allocations: 0.6985 MB / 434 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002429/0.1386, allocations: 0.7833 MB / 434.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008312/0.1394, allocations: 399.5 kB / 435.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002767/0.1422, allocations: 2.417 MB / 437.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009508/0.1432, allocations: 0.6457 MB / 438.2 MB, free: 8.027 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.1443, allocations: 0.9105 MB / 439.2 MB, free: 7.113 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.1454, allocations: 0.9839 MB / 440.1 MB, free: 6.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002801/0.1457, allocations: 232 kB / 440.4 MB, free: 5.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004519/0.1462, allocations: 268 kB / 440.6 MB, free: 5.637 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000366/0.1465, allocations: 458.4 kB / 441.1 MB, free: 5.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.1476, allocations: 1.081 MB / 442.2 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003028/0.1506, allocations: 2.837 MB / 445 MB, free: 1.254 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1506, allocations: 4 kB / 445 MB, free: 1.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1506, allocations: 0 / 445 MB, free: 1.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.988e-05/0.1506, allocations: 0 / 445 MB, free: 1.25 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.1838/0.3344, allocations: 2.195 MB / 447.2 MB, free: 29.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3345, allocations: 10.78 kB / 447.2 MB, free: 29.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002152/0.3347, allocations: 223.1 kB / 447.4 MB, free: 29.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008569/0.3355, allocations: 292.3 kB / 447.7 MB, free: 29.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.3372, allocations: 1.137 MB / 448.8 MB, free: 28.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.462e-05/0.3373, allocations: 121.3 kB / 449 MB, free: 28.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.3375, allocations: 159.1 kB / 449.1 MB, free: 28.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/0.3396, allocations: 1.501 MB / 450.6 MB, free: 28.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.264e-05/0.3397, allocations: 11.77 kB / 450.6 MB, free: 28.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.3398, allocations: 71.59 kB / 450.7 MB, free: 28.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.599e-05/0.3398, allocations: 40.19 kB / 450.7 MB, free: 28.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.3416, allocations: 1.043 MB / 451.8 MB, free: 28.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007913/0.3496, allocations: 6.247 MB / 458 MB, free: 24.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.351, allocations: 0.575 MB / 458.6 MB, free: 24.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008238/0.3518, allocations: 420.9 kB / 459 MB, free: 24.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.956e-05/0.3519, allocations: 10.86 kB / 459 MB, free: 24.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.3519, allocations: 39.94 kB / 459.1 MB, free: 24.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.244e-06/0.3519, allocations: 4 kB / 459.1 MB, free: 24.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004681/0.3566, allocations: 2.384 MB / 461.5 MB, free: 22.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.3566, allocations: 115.3 kB / 461.6 MB, free: 22.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001819/0.3584, allocations: 1.303 MB / 462.9 MB, free: 21.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.3585, allocations: 37.2 kB / 462.9 MB, free: 21.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000474/0.359, allocations: 0.8756 MB / 463.8 MB, free: 21.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.3591, allocations: 276.9 kB / 464.1 MB, free: 21.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.3594, allocations: 205.5 kB / 464.3 MB, free: 20.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.322e-05/0.3594, allocations: 358.2 kB / 464.6 MB, free: 20.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005546/0.36, allocations: 280.3 kB / 464.9 MB, free: 20.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006927/0.3607, allocations: 0.7336 MB / 465.6 MB, free: 19.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/0.362, allocations: 1.092 MB / 466.7 MB, free: 18.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.362, allocations: 4.469 kB / 466.7 MB, free: 18.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002366/0.3643, allocations: 1.269 MB / 468 MB, free: 18.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.3644, allocations: 12.41 kB / 468 MB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-05/0.3644, allocations: 16.42 kB / 468 MB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005005/0.3649, allocations: 135.3 kB / 468.1 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008324/0.3657, allocations: 256.7 kB / 468.4 MB, free: 18.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002911/0.3686, allocations: 4.644 MB / 473 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.3697, allocations: 55.36 kB / 473.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.948e-05/0.3698, allocations: 54.02 kB / 473.1 MB, free: 13.71 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005709/0.3704, allocations: 367.2 kB / 473.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.3706, allocations: 146.4 kB / 473.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/0.3723, allocations: 0.8225 MB / 474.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.3723, allocations: 7.219 kB / 474.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3723, allocations: 1.125 kB / 474.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3723, allocations: 3.516 kB / 474.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.3759, allocations: 2.332 MB / 476.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.3759, allocations: 11.36 kB / 476.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005528/0.3764, allocations: 124.6 kB / 476.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000411/0.3768, allocations: 136.2 kB / 477.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.485e-05/0.3769, allocations: 23.23 kB / 477.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002929/0.3798, allocations: 4.782 MB / 481.9 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.3798, allocations: 10.44 kB / 481.9 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.382, allocations: 1.294 MB / 483.2 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005405/0.3826, allocations: 294 kB / 483.5 MB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.3827, allocations: 24.83 kB / 483.5 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006097/0.3833, allocations: 39.56 kB / 483.5 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.3834, allocations: 58.56 kB / 483.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.664e-05/0.3835, allocations: 24.48 kB / 483.6 MB, free: 5.625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001077/0.3846, allocations: 0.888 MB / 484.5 MB, free: 5.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3846, allocations: 0 / 484.5 MB, free: 5.129 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001273/0.3858, allocations: 326 kB / 484.8 MB, free: 5.102 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002286/0.3881, allocations: 1.898 MB / 486.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.39, allocations: 1.085 MB / 487.8 MB, free: 2.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.39, allocations: 0 / 487.8 MB, free: 2.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008011/0.3908, allocations: 0.6953 MB / 488.5 MB, free: 2.469 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.3924, allocations: 365.7 kB / 488.9 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01837/0.4108, allocations: 11.72 MB / 0.4888 GB, free: 7.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009424/0.4117, allocations: 1.214 MB / 0.49 GB, free: 6.426 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007184/0.4125, allocations: 175.5 kB / 0.4902 GB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000853/0.4133, allocations: 0.6086 MB / 0.4908 GB, free: 5.645 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4133, allocations: 0 / 0.4908 GB, free: 5.645 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08114/0.4945, allocations: 31.43 MB / 0.5215 GB, free: 6.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.11, allocations: 8 kB / 0.5215 GB, free: 6.562 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.114228051155806]