Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.006768/0.006768, allocations: 111.1 kB / 21.97 MB, free: 5.25 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.001892/0.001892, allocations: 206.5 kB / 25.27 MB, free: 3.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.312/1.312, allocations: 207.6 MB / 236.1 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 55.92 kB / 348 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2351, allocations: 49.16 MB / 397.1 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01106/0.2461, allocations: 12.18 MB / 409.3 MB, free: 236 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006412/0.2525, allocations: 3.321 MB / 412.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001313/0.2538, allocations: 39.5 kB / 412.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.2556, allocations: 0.6979 MB / 413.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00173/0.2573, allocations: 0.7819 MB / 414.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007797/0.2581, allocations: 411.3 kB / 414.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00248/0.2606, allocations: 2.424 MB / 417 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009573/0.2615, allocations: 0.655 MB / 417.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001088/0.2626, allocations: 0.9265 MB / 418.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.2637, allocations: 0.9874 MB / 419.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002294/0.2639, allocations: 228.9 kB / 419.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004214/0.2643, allocations: 263.2 kB / 420 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003577/0.2647, allocations: 465 kB / 420.5 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009593/0.2657, allocations: 1.077 MB / 421.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002826/0.2685, allocations: 2.842 MB / 424.4 MB, free: 6.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2685, allocations: 0 / 424.4 MB, free: 6.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2685, allocations: 1.375 kB / 424.4 MB, free: 6.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.931e-05/0.2685, allocations: 0 / 424.4 MB, free: 6.055 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003808/0.2723, allocations: 2.139 MB / 426.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.2724, allocations: 13.58 kB / 426.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.968e-05/0.2724, allocations: 40.41 kB / 426.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002601/0.2727, allocations: 226.2 kB / 426.8 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009109/0.2736, allocations: 291.8 kB / 427.1 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/0.2754, allocations: 1.048 MB / 428.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-05/0.2755, allocations: 117.7 kB / 428.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/0.2757, allocations: 161.4 kB / 428.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002461/0.2782, allocations: 1.502 MB / 429.9 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.691e-05/0.2782, allocations: 15.89 kB / 430 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/0.2784, allocations: 68 kB / 430 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.42e-05/0.2784, allocations: 40 kB / 430.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/0.2804, allocations: 1.045 MB / 431.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007849/0.2883, allocations: 6.101 MB / 437.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.2898, allocations: 0.5783 MB / 437.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000912/0.2907, allocations: 422.5 kB / 438.2 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.058e-05/0.2907, allocations: 12.8 kB / 438.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.2908, allocations: 39.22 kB / 438.2 MB, free: 9.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.805e-06/0.2908, allocations: 0 / 438.2 MB, free: 9.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.00486/0.2956, allocations: 2.166 MB / 440.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.2957, allocations: 119.3 kB / 440.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/0.2975, allocations: 1.31 MB / 441.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.258e-05/0.2976, allocations: 41.7 kB / 441.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006451/0.2982, allocations: 0.871 MB / 442.8 MB, free: 5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.2984, allocations: 273.7 kB / 443 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.2987, allocations: 202.8 kB / 443.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.2989, allocations: 353.9 kB / 443.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005785/0.2994, allocations: 278.5 kB / 443.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009305/0.3004, allocations: 0.7463 MB / 444.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.3019, allocations: 1.084 MB / 445.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.302, allocations: 4 kB / 445.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002399/0.3044, allocations: 1.269 MB / 446.9 MB, free: 364 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.3044, allocations: 12.03 kB / 446.9 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.3044, allocations: 20 kB / 447 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005231/0.3049, allocations: 134.5 kB / 447.1 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008801/0.3058, allocations: 255.6 kB / 447.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004063/0.3099, allocations: 4.328 MB / 451.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.311, allocations: 60 kB / 451.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.756e-05/0.3111, allocations: 55.98 kB / 451.8 MB, free: 11.15 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000583/0.3117, allocations: 357.3 kB / 452.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.3119, allocations: 143.1 kB / 452.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.3137, allocations: 0.8334 MB / 453.1 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.3137, allocations: 8 kB / 453.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3137, allocations: 0 / 453.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3137, allocations: 3.984 kB / 453.1 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003934/0.3176, allocations: 2.297 MB / 455.4 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3176, allocations: 4 kB / 455.4 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005749/0.3182, allocations: 131.7 kB / 455.6 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000434/0.3186, allocations: 130.5 kB / 455.7 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/0.3187, allocations: 23.94 kB / 455.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004385/0.3231, allocations: 4.48 MB / 460.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.3231, allocations: 4 kB / 460.2 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.3254, allocations: 1.297 MB / 461.5 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005128/0.3259, allocations: 218.9 kB / 461.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.3261, allocations: 20 kB / 461.7 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006084/0.3267, allocations: 39.97 kB / 461.8 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.3268, allocations: 60.33 kB / 461.8 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/0.3269, allocations: 27.92 kB / 461.8 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001255/0.3281, allocations: 0.882 MB / 462.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3281, allocations: 0 / 462.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001184/0.3293, allocations: 332 kB / 463.1 MB, free: 15.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002694/0.332, allocations: 1.878 MB / 464.9 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.3339, allocations: 1.081 MB / 466 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3339, allocations: 8.812 kB / 466 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.335, allocations: 0.6863 MB / 466.7 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/0.3365, allocations: 373.7 kB / 467.1 MB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01818/0.3547, allocations: 11.72 MB / 478.8 MB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008917/0.3556, allocations: 1.21 MB / 480 MB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006358/0.3562, allocations: 171.6 kB / 480.2 MB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007802/0.357, allocations: 0.6125 MB / 480.8 MB, free: 12.69 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.357, allocations: 0 / 480.8 MB, free: 12.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07846/0.4355, allocations: 32.23 MB / 0.501 GB, free: 12.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/15.19, allocations: 19.81 kB / 0.501 GB, free: 12.32 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.094944623007905]