Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001657/0.001657, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002053/0.002053, allocations: 209.4 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 230.5 MB / 258.2 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 59.89 kB / 378.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2609, allocations: 53.4 MB / 431.9 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009701/0.2706, allocations: 7.276 MB / 439.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004828/0.2754, allocations: 2.556 MB / 441.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009132/0.2763, allocations: 31.88 kB / 441.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001617/0.278, allocations: 0.5269 MB / 442.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001315/0.2793, allocations: 0.5041 MB / 442.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005631/0.2798, allocations: 275.6 kB / 443.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.2815, allocations: 1.506 MB / 444.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006383/0.2821, allocations: 403.3 kB / 445 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000782/0.2829, allocations: 0.5875 MB / 445.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007138/0.2836, allocations: 0.6067 MB / 446.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.2838, allocations: 140 kB / 446.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003465/0.2841, allocations: 188 kB / 446.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002408/0.2844, allocations: 290.9 kB / 446.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005522/0.2849, allocations: 0.5483 MB / 447.3 MB, free: 7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001906/0.2868, allocations: 1.782 MB / 449.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2869, allocations: 0 / 449.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2869, allocations: 0 / 449.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.184e-05/0.2869, allocations: 0 / 449.1 MB, free: 5.211 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002432/0.2893, allocations: 1.434 MB / 450.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.2894, allocations: 12.03 kB / 450.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.299e-05/0.2894, allocations: 30.19 kB / 450.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001663/0.2896, allocations: 148.4 kB / 450.7 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007393/0.2903, allocations: 208 kB / 450.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.2916, allocations: 0.6966 MB / 451.6 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.644e-05/0.2916, allocations: 74 kB / 451.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.2918, allocations: 99.95 kB / 451.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.2935, allocations: 1.058 MB / 452.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.2935, allocations: 0 / 452.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.383e-05/0.2936, allocations: 40 kB / 452.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.2936, allocations: 24 kB / 452.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.2949, allocations: 0.6558 MB / 453.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005115/0.3, allocations: 3.517 MB / 457.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000681/0.3007, allocations: 353.4 kB / 457.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006052/0.3013, allocations: 265.3 kB / 457.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.3013, allocations: 4 kB / 457.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.3014, allocations: 38.56 kB / 457.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.564e-06/0.3014, allocations: 0 / 457.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003091/0.3045, allocations: 1.338 MB / 459.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.3045, allocations: 85.11 kB / 459.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.3057, allocations: 0.845 MB / 460 MB, free: 9.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.3058, allocations: 33.7 kB / 460 MB, free: 9.859 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004703/0.3062, allocations: 0.5814 MB / 460.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.3064, allocations: 170.6 kB / 460.8 MB, free: 9.102 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.3065, allocations: 130.6 kB / 460.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3067, allocations: 333.9 kB / 461.2 MB, free: 8.637 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.3071, allocations: 181.9 kB / 461.4 MB, free: 8.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006231/0.3077, allocations: 497.3 kB / 461.9 MB, free: 7.832 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009662/0.3086, allocations: 0.6721 MB / 462.6 MB, free: 7.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.3086, allocations: 4 kB / 462.6 MB, free: 7.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001426/0.3101, allocations: 0.7951 MB / 463.4 MB, free: 6.215 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.3101, allocations: 11.98 kB / 463.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.3101, allocations: 11.94 kB / 463.4 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002821/0.3104, allocations: 81.62 kB / 463.5 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/0.3109, allocations: 159.7 kB / 463.6 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002623/0.3135, allocations: 2.919 MB / 466.5 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005967/0.3141, allocations: 44.16 kB / 466.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.194e-05/0.3142, allocations: 36 kB / 466.6 MB, free: 2.723 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 (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.0004273/0.3146, allocations: 257.5 kB / 466.9 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.3147, allocations: 95.42 kB / 467 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.3158, allocations: 0.5032 MB / 467.5 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.3158, allocations: 4 kB / 467.5 MB, free: 1.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.3158, allocations: 0 / 467.5 MB, free: 1.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.3158, allocations: 3.984 kB / 467.5 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.318, allocations: 1.344 MB / 468.8 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.318, allocations: 0 / 468.8 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003294/0.3184, allocations: 79.89 kB / 468.9 MB, free: 352 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002186/0.3186, allocations: 70.03 kB / 469 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/0.3186, allocations: 15.98 kB / 469 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002603/0.3212, allocations: 2.912 MB / 471.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3212, allocations: 4 kB / 471.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.3226, allocations: 0.7982 MB / 472.7 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002966/0.3229, allocations: 131.4 kB / 472.8 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.323, allocations: 12 kB / 472.8 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004337/0.3235, allocations: 27.97 kB / 472.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.3236, allocations: 36.06 kB / 472.9 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.3236, allocations: 20 kB / 472.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008403/0.3244, allocations: 0.581 MB / 473.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3244, allocations: 0 / 473.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009327/0.3254, allocations: 204 kB / 473.7 MB, free: 11.26 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 (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.001754/0.3271, allocations: 1.374 MB / 475.1 MB, free: 9.832 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.3284, allocations: 0.6824 MB / 475.8 MB, free: 9.125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3284, allocations: 4.125 kB / 475.8 MB, free: 9.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007196/0.3291, allocations: 449 kB / 476.2 MB, free: 8.656 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.3302, allocations: 233.2 kB / 476.4 MB, free: 8.438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.3414, allocations: 7.468 MB / 483.9 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.3419, allocations: 422.6 kB / 484.3 MB, free: 92 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004586/0.3423, allocations: 115.4 kB / 484.4 MB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000501/0.3428, allocations: 391.2 kB / 484.8 MB, free: 15.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3428, allocations: 0 / 484.8 MB, free: 15.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05534/0.3982, allocations: 21.05 MB / 0.494 GB, free: 10.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.67, allocations: 8 kB / 0.494 GB, free: 10.85 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 18.820068385102786]