Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.002059/0.002059, allocations: 120.7 kB / 17.79 MB, free: 5.137 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.002392/0.002392, allocations: 186.9 kB / 20.73 MB, free: 2.207 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.486/1.486, allocations: 225.6 MB / 249.1 MB, free: 3.605 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_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 55.91 kB / 365.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1096, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00984/0.1195, allocations: 7.176 MB / 425 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00503/0.1245, allocations: 2.353 MB / 427.3 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008522/0.1254, allocations: 19.94 kB / 427.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001659/0.127, allocations: 0.5126 MB / 427.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.1281, allocations: 417 kB / 428.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005538/0.1287, allocations: 199.7 kB / 428.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.1301, allocations: 1.206 MB / 429.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005887/0.1307, allocations: 343.9 kB / 430 MB, free: 320 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007182/0.1314, allocations: 466.2 kB / 430.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006548/0.1321, allocations: 0.4899 MB / 430.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000176/0.1322, allocations: 116 kB / 431 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004477/0.1327, allocations: 156 kB / 431.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002231/0.1329, allocations: 227.2 kB / 431.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005802/0.1335, allocations: 0.5404 MB / 432 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001882/0.1354, allocations: 1.44 MB / 433.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1354, allocations: 0 / 433.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1354, allocations: 0 / 433.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.147e-05/0.1354, allocations: 0 / 433.4 MB, free: 12.89 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002409/0.1378, allocations: 1.281 MB / 434.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.1378, allocations: 8.031 kB / 434.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001569/0.138, allocations: 131.1 kB / 434.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005091/0.1385, allocations: 148.2 kB / 435 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.1396, allocations: 0.6537 MB / 435.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.515e-05/0.1397, allocations: 66.31 kB / 435.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.1399, allocations: 84.08 kB / 435.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.1413, allocations: 0.7793 MB / 436.5 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/0.1413, allocations: 0 / 436.5 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.426e-05/0.1414, allocations: 32 kB / 436.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.1414, allocations: 20 kB / 436.6 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.1425, allocations: 0.5153 MB / 437.1 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00475/0.1473, allocations: 3.369 MB / 440.5 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005174/0.1478, allocations: 225.6 kB / 440.7 MB, free: 5.242 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002574/0.1481, allocations: 108.8 kB / 440.8 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.1481, allocations: 4 kB / 440.8 MB, free: 5.129 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.1481, allocations: 34.56 kB / 440.8 MB, free: 5.086 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/0.1481, allocations: 0 / 440.8 MB, free: 5.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002258/0.1504, allocations: 1.061 MB / 441.9 MB, free: 3.949 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.1505, allocations: 89.34 kB / 442 MB, free: 3.844 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.1515, allocations: 0.731 MB / 442.7 MB, free: 3.105 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.1515, allocations: 33.7 kB / 442.8 MB, free: 3.066 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004214/0.1519, allocations: 0.5034 MB / 443.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.933e-05/0.152, allocations: 103.1 kB / 443.4 MB, free: 2.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.1522, allocations: 114.2 kB / 443.5 MB, free: 2.336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.1524, allocations: 382.8 kB / 443.8 MB, free: 1.953 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/0.1527, allocations: 133.2 kB / 444 MB, free: 1.824 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005425/0.1532, allocations: 414.2 kB / 444.4 MB, free: 1.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009715/0.1542, allocations: 0.5714 MB / 444.9 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.1542, allocations: 8 kB / 445 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.1939/0.3481, allocations: 0.6149 MB / 445.6 MB, free: 29.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.3481, allocations: 9.062 kB / 445.6 MB, free: 29.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.3482, allocations: 9.656 kB / 445.6 MB, free: 29.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002915/0.3485, allocations: 33.75 kB / 445.6 MB, free: 29.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004634/0.3489, allocations: 137.6 kB / 445.8 MB, free: 29.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000784/0.3497, allocations: 1.39 MB / 447.1 MB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005233/0.3502, allocations: 33.3 kB / 447.2 MB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.189e-05/0.3503, allocations: 33.3 kB / 447.2 MB, free: 27.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003487/0.3506, allocations: 244 kB / 447.4 MB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.3508, allocations: 78.2 kB / 447.5 MB, free: 27.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000544/0.3513, allocations: 311.2 kB / 447.8 MB, free: 27.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3513, allocations: 9.625 kB / 447.8 MB, free: 27.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.3513, allocations: 2.766 kB / 447.8 MB, free: 27.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3513, allocations: 0 / 447.8 MB, free: 27.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.3526, allocations: 1.098 MB / 448.9 MB, free: 27.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.3526, allocations: 3.25 kB / 448.9 MB, free: 27.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003035/0.3529, allocations: 59.91 kB / 449 MB, free: 27.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.131e-05/0.353, allocations: 22.73 kB / 449 MB, free: 27.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.353, allocations: 9.281 kB / 449 MB, free: 27.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006339/0.3537, allocations: 1.369 MB / 450.4 MB, free: 26.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3537, allocations: 3.844 kB / 450.4 MB, free: 26.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007607/0.3544, allocations: 0.5608 MB / 451 MB, free: 25.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/0.3546, allocations: 177.7 kB / 451.1 MB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.3547, allocations: 9.25 kB / 451.1 MB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.355, allocations: 17.17 kB / 451.2 MB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.527e-05/0.3551, allocations: 30.78 kB / 451.2 MB, free: 25.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.3551, allocations: 12.78 kB / 451.2 MB, free: 25.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007474/0.3559, allocations: 0.4992 MB / 451.7 MB, free: 25.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3559, allocations: 0 / 451.7 MB, free: 25.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006773/0.3565, allocations: 163.5 kB / 451.9 MB, free: 25.68 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,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.001075/0.3576, allocations: 1.125 MB / 453 MB, free: 24.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008986/0.3585, allocations: 458.2 kB / 453.4 MB, free: 24.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.3585, allocations: 0 / 453.4 MB, free: 24.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.3589, allocations: 245.4 kB / 453.7 MB, free: 24.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009083/0.3598, allocations: 176.6 kB / 453.8 MB, free: 24.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008835/0.3686, allocations: 6.273 MB / 460.1 MB, free: 21.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.3691, allocations: 0.9377 MB / 461.1 MB, free: 20.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004019/0.3695, allocations: 89.42 kB / 461.1 MB, free: 20.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003079/0.3698, allocations: 298.9 kB / 461.4 MB, free: 20.37 MB / 366.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3698, allocations: 5.125 kB / 461.4 MB, free: 20.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05451/0.4243, allocations: 15.56 MB / 477 MB, free: 15.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.89, allocations: 14.58 kB / 477 MB, free: 15.21 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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: 15.664228931069374]