Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000819/0.000819, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8479/0.8479, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.107e-05/2.229e-05, allocations: 3.688 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005572/0.005594, allocations: 7.3 MB / 331.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00293/0.008524, allocations: 2.568 MB / 334.4 MB, free: 6.023 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003987/0.008923, allocations: 35.81 kB / 334.5 MB, free: 5.988 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009329/0.009856, allocations: 0.5285 MB / 335 MB, free: 5.457 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006507/0.01051, allocations: 0.5233 MB / 335.5 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.01085, allocations: 275.5 kB / 335.8 MB, free: 4.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009819/0.01184, allocations: 1.583 MB / 337.4 MB, free: 3.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.01225, allocations: 367.9 kB / 337.7 MB, free: 2.691 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007465/0.013, allocations: 0.869 MB / 338.6 MB, free: 1.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003904/0.01339, allocations: 454.5 kB / 339.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.0135, allocations: 140 kB / 339.2 MB, free: 1.238 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001973/0.0137, allocations: 191.9 kB / 339.4 MB, free: 1.047 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.01382, allocations: 290.8 kB / 339.7 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002953/0.01412, allocations: 474.8 kB / 340.1 MB, free: 304 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.01521, allocations: 1.756 MB / 341.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.01521, allocations: 0 / 341.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01521, allocations: 0 / 341.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.627e-05/0.01524, allocations: 0 / 341.9 MB, free: 14.54 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001556/0.01679, allocations: 1.43 MB / 343.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.01683, allocations: 8.031 kB / 343.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001182/0.01695, allocations: 156.3 kB / 343.5 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003786/0.01732, allocations: 208 kB / 343.7 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008098/0.01813, allocations: 0.6929 MB / 344.4 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.01817, allocations: 74 kB / 344.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.839e-05/0.01826, allocations: 99.95 kB / 344.5 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.01928, allocations: 1.047 MB / 345.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.0193, allocations: 0 / 345.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.596e-05/0.01936, allocations: 44 kB / 345.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.01937, allocations: 24 kB / 345.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007919/0.02016, allocations: 0.6481 MB / 346.3 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.02322, allocations: 3.525 MB / 349.8 MB, free: 6.258 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004403/0.02366, allocations: 351.6 kB / 350.2 MB, free: 5.906 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003476/0.02401, allocations: 260.6 kB / 350.4 MB, free: 5.648 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.02403, allocations: 4 kB / 350.4 MB, free: 5.645 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.02405, allocations: 42.5 kB / 350.5 MB, free: 5.594 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.423e-06/0.02405, allocations: 0 / 350.5 MB, free: 5.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.00171/0.02576, allocations: 1.339 MB / 351.8 MB, free: 4.215 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.0258, allocations: 89.03 kB / 351.9 MB, free: 4.109 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007074/0.02651, allocations: 0.8605 MB / 352.8 MB, free: 3.238 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.02653, allocations: 33.7 kB / 352.8 MB, free: 3.199 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002618/0.02679, allocations: 0.5775 MB / 353.4 MB, free: 2.613 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.94e-05/0.02687, allocations: 166.6 kB / 353.5 MB, free: 2.449 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.02699, allocations: 134.6 kB / 353.7 MB, free: 2.312 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.333e-05/0.02707, allocations: 333.9 kB / 354 MB, free: 1.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.02728, allocations: 177.9 kB / 354.2 MB, free: 1.805 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003361/0.02762, allocations: 497.3 kB / 354.6 MB, free: 1.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000587/0.02821, allocations: 0.6797 MB / 355.3 MB, free: 376 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.02821, allocations: 7.938 kB / 355.3 MB, free: 368 kB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008193/0.02903, allocations: 0.7833 MB / 356.1 MB, free: 15.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.02905, allocations: 8 kB / 356.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.02906, allocations: 12 kB / 356.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001683/0.02923, allocations: 81.67 kB / 356.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.0295, allocations: 156 kB / 356.4 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/0.03095, allocations: 2.927 MB / 359.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002768/0.03123, allocations: 35.97 kB / 359.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/0.03125, allocations: 32 kB / 359.4 MB, free: 12.08 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002298/0.03148, allocations: 261.5 kB / 359.6 MB, free: 11.81 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.75e-05/0.03156, allocations: 99.33 kB / 359.7 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006144/0.03218, allocations: 0.5032 MB / 360.2 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.03218, allocations: 11.92 kB / 360.2 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.03218, allocations: 0 / 360.2 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.03219, allocations: 0 / 360.2 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.03351, allocations: 1.333 MB / 361.6 MB, free: 9.777 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.03351, allocations: 7.938 kB / 361.6 MB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.03368, allocations: 76.11 kB / 361.6 MB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.0338, allocations: 77.61 kB / 361.7 MB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.03382, allocations: 12 kB / 361.7 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.03514, allocations: 2.904 MB / 364.6 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.03515, allocations: 4.031 kB / 364.6 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007572/0.0359, allocations: 0.7909 MB / 365.4 MB, free: 5.629 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.03607, allocations: 135.4 kB / 365.6 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.172e-05/0.03612, allocations: 12 kB / 365.6 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.03633, allocations: 31.92 kB / 365.6 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.088e-05/0.0364, allocations: 35.94 kB / 365.6 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.03642, allocations: 15.98 kB / 365.7 MB, free: 5.402 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004922/0.03691, allocations: 0.5771 MB / 366.2 MB, free: 4.828 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03691, allocations: 3.938 kB / 366.2 MB, free: 4.824 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004877/0.0374, allocations: 207.9 kB / 366.4 MB, free: 4.621 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (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.001057/0.03846, allocations: 1.37 MB / 367.8 MB, free: 3.195 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007711/0.03923, allocations: 0.6826 MB / 368.5 MB, free: 2.488 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.03923, allocations: 0 / 368.5 MB, free: 2.488 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000384/0.03961, allocations: 441 kB / 368.9 MB, free: 2.031 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006438/0.04026, allocations: 237.2 kB / 369.2 MB, free: 1.809 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007461/0.04772, allocations: 7.438 MB / 376.6 MB, free: 9.926 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.04801, allocations: 422.7 kB / 377 MB, free: 9.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002635/0.04827, allocations: 107.3 kB / 377.1 MB, free: 9.371 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/0.04857, allocations: 392.4 kB / 377.5 MB, free: 8.988 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.04857, allocations: 0 / 377.5 MB, free: 8.988 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03801/0.08659, allocations: 21.38 MB / 398.9 MB, free: 3.934 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.512, allocations: 4.062 kB / 398.9 MB, free: 3.93 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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: 9.979003731161356]