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.001327/0.001327, 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.001444/0.001444, 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.9363/0.9363, allocations: 173.3 MB / 200.4 MB, free: 9.449 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.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 2.775e-06/2.775e-06, allocations: 0 / 318.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.087e-05/2.364e-05, allocations: 2.281 kB / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01154/0.01156, allocations: 10.56 MB / 329 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005452/0.01702, allocations: 3.102 MB / 332.1 MB, free: 8.523 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009935/0.01801, allocations: 43.81 kB / 332.1 MB, free: 8.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001633/0.01964, allocations: 0.6477 MB / 332.8 MB, free: 7.828 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001346/0.02099, allocations: 0.8218 MB / 333.6 MB, free: 7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005736/0.02156, allocations: 415.3 kB / 334 MB, free: 6.594 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001633/0.0232, allocations: 2.505 MB / 336.5 MB, free: 4.078 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006402/0.02384, allocations: 0.6031 MB / 337.1 MB, free: 3.422 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.02485, allocations: 1.391 MB / 338.5 MB, free: 2.027 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000582/0.02544, allocations: 0.7204 MB / 339.2 MB, free: 1.305 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000176/0.02561, allocations: 232 kB / 339.5 MB, free: 1.078 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.02589, allocations: 260 kB / 339.7 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004777/0.02636, allocations: 474.2 kB / 340.2 MB, free: 364 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004861/0.02685, allocations: 0.7326 MB / 340.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001668/0.02852, allocations: 2.839 MB / 343.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.02852, allocations: 0 / 343.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.02853, allocations: 0 / 343.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.653e-05/0.02855, allocations: 4 kB / 343.8 MB, free: 12.77 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002183/0.03073, allocations: 2.125 MB / 345.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.03077, allocations: 8.922 kB / 345.9 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001895/0.03096, allocations: 224.1 kB / 346.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004715/0.03144, allocations: 291.5 kB / 346.4 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.03286, allocations: 1.043 MB / 347.4 MB, free: 8.996 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.283e-05/0.03291, allocations: 115.5 kB / 347.6 MB, free: 8.883 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.03305, allocations: 164.3 kB / 347.7 MB, free: 8.723 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.03461, allocations: 1.619 MB / 349.3 MB, free: 7.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.03465, allocations: 11.95 kB / 349.3 MB, free: 7.008 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.897e-05/0.03472, allocations: 60 kB / 349.4 MB, free: 6.949 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.03474, allocations: 40 kB / 349.4 MB, free: 6.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.03603, allocations: 1.041 MB / 350.5 MB, free: 5.863 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004735/0.04077, allocations: 5.643 MB / 356.1 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009377/0.0417, allocations: 0.5735 MB / 356.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000551/0.04225, allocations: 429.7 kB / 357.1 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.04229, allocations: 8.656 kB / 357.1 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.04231, allocations: 47.09 kB / 357.2 MB, free: 14.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 1.904e-06/0.04231, allocations: 0 / 357.2 MB, free: 14.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.002792/0.04511, allocations: 2.173 MB / 359.3 MB, free: 12.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.04515, allocations: 115.5 kB / 359.5 MB, free: 12.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.04624, allocations: 1.321 MB / 360.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.04628, allocations: 41.7 kB / 360.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003998/0.04667, allocations: 0.871 MB / 361.7 MB, free: 10.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.04679, allocations: 269.7 kB / 362 MB, free: 9.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.04696, allocations: 198.8 kB / 362.2 MB, free: 9.793 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.46e-05/0.04706, allocations: 357.9 kB / 362.5 MB, free: 9.438 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.04741, allocations: 278.5 kB / 362.8 MB, free: 9.164 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005479/0.04796, allocations: 0.7848 MB / 363.6 MB, free: 8.152 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009387/0.0489, allocations: 1.092 MB / 364.6 MB, free: 6.852 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.361e-06/0.0489, allocations: 4 kB / 364.7 MB, free: 6.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001381/0.05028, allocations: 1.261 MB / 365.9 MB, free: 5.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.0503, allocations: 16 kB / 365.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.05032, allocations: 16 kB / 365.9 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003053/0.05062, allocations: 138.4 kB / 366.1 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.05107, allocations: 255.6 kB / 366.3 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.05338, allocations: 4.301 MB / 370.6 MB, free: 0.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.05379, allocations: 64.22 kB / 370.7 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/0.05384, allocations: 52 kB / 370.7 MB, free: 396 kB / 330.7 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.000348/0.05419, allocations: 361.3 kB / 371.1 MB, free: 24 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.05431, allocations: 147.1 kB / 371.2 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.05533, allocations: 0.8256 MB / 372.1 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.05533, allocations: 8 kB / 372.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.05533, allocations: 3.938 kB / 372.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.05534, allocations: 11.92 kB / 372.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.05758, allocations: 2.125 MB / 374.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.05758, allocations: 480 / 374.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002978/0.05788, allocations: 131.9 kB / 374.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000244/0.05813, allocations: 130.4 kB / 374.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/0.05816, allocations: 16.06 kB / 374.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00235/0.06051, allocations: 4.453 MB / 378.9 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.06051, allocations: 11.92 kB / 379 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.06191, allocations: 1.289 MB / 380.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.06219, allocations: 215 kB / 380.5 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.692e-05/0.06227, allocations: 20.12 kB / 380.5 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.06258, allocations: 43.97 kB / 380.5 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.586e-05/0.06267, allocations: 68.27 kB / 380.6 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.06269, allocations: 23.94 kB / 380.6 MB, free: 5.949 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008003/0.06349, allocations: 0.8781 MB / 381.5 MB, free: 5.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.06349, allocations: 3.938 kB / 381.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006927/0.06419, allocations: 332 kB / 381.8 MB, free: 4.742 MB / 346.7 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.001658/0.06584, allocations: 1.874 MB / 383.7 MB, free: 2.785 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.06694, allocations: 1.081 MB / 384.8 MB, free: 1.664 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.06694, allocations: 4 kB / 384.8 MB, free: 1.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005677/0.06751, allocations: 0.6955 MB / 385.5 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009148/0.06843, allocations: 354.7 kB / 385.8 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/0.08099, allocations: 11.63 MB / 397.4 MB, free: 4.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.08143, allocations: 0.6341 MB / 398.1 MB, free: 3.578 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003955/0.08183, allocations: 175.6 kB / 398.2 MB, free: 3.402 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004997/0.08233, allocations: 0.6136 MB / 398.9 MB, free: 2.789 MB / 362.7 MB Notification: Performance of SimCode: time 7.22e-07/0.08233, allocations: 3.938 kB / 398.9 MB, free: 2.785 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04469/0.127, allocations: 33.7 MB / 432.6 MB, free: 1.461 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.818/8.945, allocations: 0 / 432.6 MB, free: 1.461 MB / 394.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 12.162931489758193]