Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.001255/0.001255, allocations: 108.8 kB / 21.22 MB, free: 0.7305 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.001338/0.001338, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.371/1.371, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.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.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 47.92 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2442, allocations: 52.18 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009942/0.2542, allocations: 8.15 MB / 431.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004853/0.259, allocations: 2.653 MB / 434.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007607/0.2598, allocations: 27.88 kB / 434.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.2612, allocations: 0.5754 MB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001172/0.2624, allocations: 0.4925 MB / 435.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000496/0.2629, allocations: 251.7 kB / 435.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.2646, allocations: 1.481 MB / 437.1 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006715/0.2652, allocations: 392.5 kB / 437.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000838/0.2661, allocations: 0.5682 MB / 438 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008071/0.2669, allocations: 0.5949 MB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.2671, allocations: 140 kB / 438.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003447/0.2674, allocations: 184 kB / 438.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.2676, allocations: 282.9 kB / 439.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006661/0.2683, allocations: 0.657 MB / 439.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002005/0.2703, allocations: 1.731 MB / 441.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2703, allocations: 4 kB / 441.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2703, allocations: 0 / 441.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.655e-05/0.2703, allocations: 0 / 441.6 MB, free: 12.34 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002498/0.2728, allocations: 1.411 MB / 443 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.2729, allocations: 12.03 kB / 443 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.613e-05/0.2729, allocations: 26.19 kB / 443 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.2731, allocations: 148.4 kB / 443.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006408/0.2737, allocations: 196 kB / 443.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.275, allocations: 0.6764 MB / 444 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.983e-05/0.275, allocations: 74 kB / 444.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.2752, allocations: 96 kB / 444.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.2767, allocations: 0.9346 MB / 445.1 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.355e-05/0.2768, allocations: 7.953 kB / 445.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.464e-05/0.2768, allocations: 43.98 kB / 445.2 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.2769, allocations: 24 kB / 445.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.2781, allocations: 0.6324 MB / 445.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004957/0.283, allocations: 3.782 MB / 449.6 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006447/0.2837, allocations: 343.5 kB / 450 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005761/0.2843, allocations: 257.3 kB / 450.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.2843, allocations: 4.328 kB / 450.2 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.2843, allocations: 46.77 kB / 450.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.873e-06/0.2843, allocations: 0 / 450.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002576/0.2869, allocations: 1.263 MB / 451.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.793e-05/0.287, allocations: 85.05 kB / 451.6 MB, free: 1.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.2881, allocations: 0.8254 MB / 452.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.2881, allocations: 33.7 kB / 452.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004289/0.2885, allocations: 0.5696 MB / 453 MB, free: 476 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.2887, allocations: 166.6 kB / 453.2 MB, free: 308 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/0.2888, allocations: 134.6 kB / 453.3 MB, free: 168 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.289, allocations: 333.9 kB / 453.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003345/0.2893, allocations: 165.9 kB / 453.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005547/0.2899, allocations: 460 kB / 454.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009267/0.2908, allocations: 0.6585 MB / 454.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.2908, allocations: 4 kB / 454.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001302/0.2921, allocations: 0.7671 MB / 455.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.2922, allocations: 15.28 kB / 455.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.2922, allocations: 11.94 kB / 455.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.2924, allocations: 89.86 kB / 455.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000467/0.2929, allocations: 147.8 kB / 456 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.2954, allocations: 2.936 MB / 458.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004999/0.2959, allocations: 40 kB / 458.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.77e-05/0.296, allocations: 35.98 kB / 459 MB, free: 10.01 MB / 366.1 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 (84): * Single equations (assignments): 82 * 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.0003676/0.2964, allocations: 261.5 kB / 459.2 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.2965, allocations: 87.44 kB / 459.3 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009179/0.2974, allocations: 499.5 kB / 459.8 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2974, allocations: 4 kB / 459.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2974, allocations: 0 / 459.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2974, allocations: 0 / 459.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/0.2995, allocations: 1.419 MB / 461.2 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.2995, allocations: 4 kB / 461.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/0.2998, allocations: 67.89 kB / 461.3 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001957/0.3, allocations: 69.69 kB / 461.4 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.3, allocations: 15.92 kB / 461.4 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0024/0.3024, allocations: 2.916 MB / 464.3 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.3024, allocations: 7.969 kB / 464.3 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.3037, allocations: 0.7637 MB / 465.1 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.304, allocations: 127.5 kB / 465.2 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.543e-05/0.3041, allocations: 15.98 kB / 465.2 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003881/0.3044, allocations: 19.98 kB / 465.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.084e-05/0.3045, allocations: 39.86 kB / 465.3 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.3046, allocations: 20 kB / 465.3 MB, free: 3.309 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007512/0.3053, allocations: 0.5654 MB / 465.9 MB, free: 2.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3053, allocations: 0 / 465.9 MB, free: 2.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007733/0.3061, allocations: 200 kB / 466 MB, free: 2.555 MB / 366.1 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 (38): * Single equations (assignments): 36 * 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.0016/0.3077, allocations: 1.35 MB / 467.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.3088, allocations: 0.6667 MB / 468.1 MB, free: 472 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3088, allocations: 8.062 kB / 468.1 MB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006291/0.3095, allocations: 421.1 kB / 468.5 MB, free: 16 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.3105, allocations: 218.2 kB / 468.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.3208, allocations: 7.331 MB / 476 MB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006666/0.3215, allocations: 1.005 MB / 477 MB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003923/0.3219, allocations: 107.2 kB / 477.1 MB, free: 6.895 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.3223, allocations: 375.3 kB / 477.5 MB, free: 6.527 MB / 382.1 MB Notification: Performance of SimCode: time 1.193e-06/0.3223, allocations: 0 / 477.5 MB, free: 6.527 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05485/0.3772, allocations: 19.73 MB / 497.2 MB, free: 3.066 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.05, allocations: 2.922 kB / 497.2 MB, free: 3.066 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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: 18.014847751997877]