Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.001662/0.001662, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00211/0.00211, allocations: 211.1 kB / 23.73 MB, free: 4.523 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.42/1.42, allocations: 230.6 MB / 257.5 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.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 51.92 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2341, allocations: 53.36 MB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.00943/0.2436, allocations: 7.167 MB / 438.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004556/0.2481, allocations: 2.486 MB / 440.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005973/0.2487, allocations: 27.88 kB / 440.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.25, allocations: 0.5131 MB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.2511, allocations: 0.4964 MB / 441.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.2515, allocations: 251.7 kB / 442 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001564/0.2531, allocations: 1.475 MB / 443.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006254/0.2537, allocations: 409.1 kB / 443.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007396/0.2545, allocations: 0.5681 MB / 444.5 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007251/0.2552, allocations: 0.6066 MB / 445.1 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.2553, allocations: 136 kB / 445.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002993/0.2556, allocations: 180 kB / 445.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000226/0.2559, allocations: 279 kB / 445.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005365/0.2564, allocations: 0.5444 MB / 446.2 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001812/0.2582, allocations: 1.735 MB / 447.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2582, allocations: 0 / 447.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2582, allocations: 0 / 447.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.386e-05/0.2583, allocations: 0 / 447.9 MB, free: 5.672 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.002524/0.2608, allocations: 1.411 MB / 449.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.2608, allocations: 8.031 kB / 449.4 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001968/0.261, allocations: 152.3 kB / 449.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006715/0.2617, allocations: 192 kB / 449.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.263, allocations: 0.6804 MB / 450.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.489e-05/0.2631, allocations: 74 kB / 450.4 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.2632, allocations: 99.95 kB / 450.5 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/0.2649, allocations: 1.031 MB / 451.6 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.742e-05/0.265, allocations: 7.938 kB / 451.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.293e-05/0.2651, allocations: 40 kB / 451.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.2651, allocations: 28 kB / 451.6 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.2663, allocations: 0.6286 MB / 452.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004927/0.2712, allocations: 3.498 MB / 455.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006532/0.2719, allocations: 339.4 kB / 456.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000562/0.2724, allocations: 249.4 kB / 456.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.2725, allocations: 8.312 kB / 456.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.2725, allocations: 34.89 kB / 456.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.164e-06/0.2725, allocations: 4 kB / 456.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002644/0.2751, allocations: 1.272 MB / 457.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.2752, allocations: 85.11 kB / 457.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.2763, allocations: 0.8369 MB / 458.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.848e-05/0.2763, allocations: 37.64 kB / 458.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004319/0.2768, allocations: 0.5697 MB / 459.2 MB, free: 9.977 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.2769, allocations: 166.6 kB / 459.4 MB, free: 9.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.2771, allocations: 130.6 kB / 459.5 MB, free: 9.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2772, allocations: 330 kB / 459.8 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.2776, allocations: 165.9 kB / 460 MB, free: 9.188 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005752/0.2781, allocations: 489.7 kB / 460.4 MB, free: 8.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009431/0.2791, allocations: 0.6622 MB / 461.1 MB, free: 7.773 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2791, allocations: 4 kB / 461.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001326/0.2804, allocations: 0.7749 MB / 461.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.2804, allocations: 8 kB / 461.9 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.2804, allocations: 8 kB / 461.9 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002844/0.2807, allocations: 85.88 kB / 462 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.2812, allocations: 155.7 kB / 462.1 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.2838, allocations: 2.916 MB / 465 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000579/0.2843, allocations: 39.94 kB / 465.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.752e-05/0.2844, allocations: 32 kB / 465.1 MB, free: 3.512 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.0004005/0.2848, allocations: 261.5 kB / 465.4 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.2849, allocations: 95.5 kB / 465.5 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009422/0.2859, allocations: 495.4 kB / 466 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2859, allocations: 4 kB / 466 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2859, allocations: 3.984 kB / 466 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2859, allocations: 0 / 466 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002037/0.2879, allocations: 1.303 MB / 467.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2879, allocations: 4 kB / 467.3 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000309/0.2882, allocations: 72.25 kB / 467.3 MB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002069/0.2884, allocations: 77.61 kB / 467.4 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.2885, allocations: 8 kB / 467.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.2909, allocations: 2.915 MB / 470.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.2909, allocations: 0 / 470.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.2921, allocations: 0.7785 MB / 471.1 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002907/0.2924, allocations: 123.4 kB / 471.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.2925, allocations: 15.98 kB / 471.3 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004309/0.293, allocations: 28.11 kB / 471.3 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.625e-05/0.293, allocations: 39.88 kB / 471.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.748e-05/0.2931, allocations: 16 kB / 471.3 MB, free: 12.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007945/0.2939, allocations: 0.5654 MB / 471.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2939, allocations: 0 / 471.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008346/0.2947, allocations: 203.9 kB / 472.1 MB, free: 12.16 MB / 382.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.001624/0.2963, allocations: 1.335 MB / 473.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.2976, allocations: 0.6705 MB / 474.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.2976, allocations: 4.312 kB / 474.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006798/0.2983, allocations: 429 kB / 474.5 MB, free: 9.625 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.2993, allocations: 229.8 kB / 474.8 MB, free: 9.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.3099, allocations: 7.316 MB / 482.1 MB, free: 1.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.3104, allocations: 417.9 kB / 482.5 MB, free: 1.219 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003966/0.3108, allocations: 107.2 kB / 482.6 MB, free: 1.109 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004675/0.3113, allocations: 375.3 kB / 482.9 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3113, allocations: 0 / 482.9 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06078/0.372, allocations: 21.12 MB / 0.4922 GB, free: 11.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.85, allocations: 7.969 kB / 0.4923 GB, free: 11.98 MB / 414.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 15.673850668012165]