Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001281/0.001281, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.001411/0.001411, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 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 1.354/1.354, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 51.92 kB / 378.5 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2565, allocations: 53.35 MB / 431.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008882/0.2653, allocations: 6.364 MB / 438.2 MB, free: 252 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004212/0.2696, allocations: 2.216 MB / 440.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005222/0.2701, allocations: 19.94 kB / 440.5 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.2713, allocations: 477.1 kB / 440.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008945/0.2722, allocations: 412.9 kB / 441.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.2726, allocations: 207.7 kB / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001322/0.2739, allocations: 1.206 MB / 442.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005619/0.2745, allocations: 336.5 kB / 443.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006646/0.2752, allocations: 490.1 kB / 443.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005703/0.2757, allocations: 497.8 kB / 444 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.2759, allocations: 116 kB / 444.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000281/0.2762, allocations: 159.9 kB / 444.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001908/0.2763, allocations: 223.2 kB / 444.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004965/0.2768, allocations: 450 kB / 445 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001643/0.2785, allocations: 1.451 MB / 446.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.2785, allocations: 3.984 kB / 446.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2785, allocations: 0 / 446.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.2785, allocations: 0 / 446.4 MB, free: 8.008 MB / 350.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.001993/0.2805, allocations: 1.194 MB / 447.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2805, allocations: 12.03 kB / 447.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.468e-05/0.2806, allocations: 22.19 kB / 447.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001365/0.2807, allocations: 131.1 kB / 447.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004703/0.2812, allocations: 144.2 kB / 447.9 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.2822, allocations: 0.5804 MB / 448.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.251e-05/0.2822, allocations: 62.38 kB / 448.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.2824, allocations: 91.88 kB / 448.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.2838, allocations: 0.8256 MB / 449.5 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.2838, allocations: 8 kB / 449.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-05/0.2838, allocations: 35.94 kB / 449.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.2839, allocations: 20 kB / 449.5 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.2849, allocations: 0.5152 MB / 450 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004046/0.2889, allocations: 3.048 MB / 453.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004823/0.2894, allocations: 210.5 kB / 453.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.2896, allocations: 112.8 kB / 453.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.2897, allocations: 3.938 kB / 453.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.2897, allocations: 38.55 kB / 453.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 3.968e-06/0.2897, allocations: 4 kB / 453.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001984/0.2917, allocations: 0.905 MB / 454.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.2917, allocations: 81.34 kB / 454.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009514/0.2927, allocations: 0.735 MB / 455.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.2927, allocations: 29.7 kB / 455.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/0.2931, allocations: 0.5034 MB / 455.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.813e-05/0.2932, allocations: 115.1 kB / 455.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.2934, allocations: 114.2 kB / 455.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.2936, allocations: 382.8 kB / 456.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.2938, allocations: 117.2 kB / 456.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005405/0.2944, allocations: 447.9 kB / 456.8 MB, free: 13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008124/0.2952, allocations: 0.5753 MB / 457.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.2952, allocations: 7.938 kB / 457.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001064/0.2963, allocations: 0.6112 MB / 458 MB, free: 11.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.2963, allocations: 14.8 kB / 458.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.2963, allocations: 8 kB / 458.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.2965, allocations: 37.39 kB / 458.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.2969, allocations: 139.8 kB / 458.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.2981, allocations: 1.283 MB / 459.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004266/0.2985, allocations: 31.98 kB / 459.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.2985, allocations: 35.98 kB / 459.6 MB, free: 10 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.0003335/0.2989, allocations: 241.7 kB / 459.8 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.299, allocations: 75.53 kB / 459.9 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006389/0.2996, allocations: 317.4 kB / 460.2 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2996, allocations: 4 kB / 460.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2996, allocations: 3.984 kB / 460.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2996, allocations: 0 / 460.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.3012, allocations: 0.9999 MB / 461.2 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.3012, allocations: 8 kB / 461.2 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002544/0.3015, allocations: 55.97 kB / 461.3 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.507e-05/0.3016, allocations: 29 kB / 461.3 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.3016, allocations: 15.94 kB / 461.3 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.3026, allocations: 1.263 MB / 462.6 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.3026, allocations: 4.031 kB / 462.6 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008664/0.3035, allocations: 0.5602 MB / 463.1 MB, free: 6.176 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.3037, allocations: 99.53 kB / 463.2 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.022e-05/0.3037, allocations: 11.98 kB / 463.3 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003008/0.304, allocations: 19.98 kB / 463.3 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.914e-05/0.3041, allocations: 23.91 kB / 463.3 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.3041, allocations: 8 kB / 463.3 MB, free: 6.016 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006763/0.3048, allocations: 0.5029 MB / 463.8 MB, free: 5.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3048, allocations: 4 kB / 463.8 MB, free: 5.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006504/0.3055, allocations: 167.9 kB / 464 MB, free: 5.352 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.001338/0.3068, allocations: 1.114 MB / 465.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008573/0.3076, allocations: 447.8 kB / 465.5 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3076, allocations: 0 / 465.5 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003689/0.308, allocations: 236 kB / 465.8 MB, free: 3.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008498/0.3089, allocations: 192.4 kB / 465.9 MB, free: 3.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008874/0.3177, allocations: 6.289 MB / 472.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.3181, allocations: 348.7 kB / 472.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003138/0.3184, allocations: 90.02 kB / 472.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003886/0.3188, allocations: 303.3 kB / 473 MB, free: 11.86 MB / 382.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3188, allocations: 3.938 kB / 473 MB, free: 11.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04794/0.3668, allocations: 16.65 MB / 489.6 MB, free: 11.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/12.93, allocations: 6.812 kB / 489.6 MB, free: 11.57 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 17.298118904000148]