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.001355/0.001355, allocations: 100.8 kB / 21.95 MB, free: 5.215 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.001412/0.001412, allocations: 213.5 kB / 25.26 MB, free: 3.129 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.343/1.343, allocations: 207.7 MB / 236.1 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 178] 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.001692/0.001692, allocations: 55.92 kB / 348 MB, free: 9.867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2419, allocations: 49.16 MB / 397.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009555/0.2515, allocations: 10.48 MB / 407.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005696/0.2572, allocations: 3.13 MB / 410.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.2587, allocations: 39.75 kB / 410.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001754/0.2604, allocations: 0.6479 MB / 411.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001926/0.2624, allocations: 0.7793 MB / 412.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008496/0.2632, allocations: 417.4 kB / 412.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003133/0.2663, allocations: 2.419 MB / 415 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.2674, allocations: 0.6551 MB / 415.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001412/0.2688, allocations: 0.9351 MB / 416.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.2698, allocations: 0.9866 MB / 417.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002517/0.2701, allocations: 229.1 kB / 417.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005007/0.2706, allocations: 267.5 kB / 418.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003721/0.271, allocations: 463.5 kB / 418.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009088/0.2719, allocations: 0.872 MB / 419.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002874/0.2748, allocations: 2.866 MB / 422.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2748, allocations: 0 / 422.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2748, allocations: 0 / 422.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.773e-05/0.2748, allocations: 1.125 kB / 422.3 MB, free: 8.164 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.003836/0.2786, allocations: 2.127 MB / 424.4 MB, free: 6.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.2787, allocations: 18.33 kB / 424.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.774e-05/0.2787, allocations: 40.38 kB / 424.5 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002521/0.279, allocations: 226.9 kB / 424.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009376/0.2799, allocations: 286.6 kB / 425 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001888/0.2818, allocations: 1.049 MB / 426 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.927e-05/0.2819, allocations: 125.1 kB / 426.2 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/0.2821, allocations: 160.6 kB / 426.3 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.2848, allocations: 1.599 MB / 427.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.192e-05/0.2848, allocations: 23.88 kB / 427.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.2849, allocations: 60 kB / 428 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-05/0.285, allocations: 40 kB / 428 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00207/0.2871, allocations: 1.045 MB / 429.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0084/0.2955, allocations: 5.641 MB / 434.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.297, allocations: 0.5673 MB / 435.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009005/0.2979, allocations: 426.6 kB / 435.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.2979, allocations: 8.656 kB / 435.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.298, allocations: 39.22 kB / 435.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.635e-06/0.298, allocations: 4 kB / 435.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.004978/0.3029, allocations: 2.17 MB / 437.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.864e-05/0.303, allocations: 119.3 kB / 438 MB, free: 9.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001763/0.3048, allocations: 1.306 MB / 439.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.839e-05/0.3048, allocations: 37.7 kB / 439.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006743/0.3055, allocations: 0.8671 MB / 440.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.3057, allocations: 277.7 kB / 440.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002896/0.306, allocations: 206.8 kB / 440.7 MB, free: 6.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3062, allocations: 345.9 kB / 441.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005867/0.3067, allocations: 286.5 kB / 441.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009979/0.3077, allocations: 0.7887 MB / 442.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.3094, allocations: 1.092 MB / 443.2 MB, free: 3.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.517e-06/0.3094, allocations: 8 kB / 443.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002428/0.3118, allocations: 1.268 MB / 444.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3119, allocations: 8 kB / 444.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.3119, allocations: 16 kB / 444.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005369/0.3124, allocations: 146.9 kB / 444.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008406/0.3132, allocations: 255.6 kB / 444.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004178/0.3174, allocations: 4.301 MB / 449.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.3185, allocations: 55.92 kB / 449.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.141e-05/0.3186, allocations: 56 kB / 449.3 MB, free: 13.41 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.0006179/0.3192, allocations: 357.3 kB / 449.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.3194, allocations: 155.1 kB / 449.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.3212, allocations: 0.8256 MB / 450.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.3212, allocations: 8 kB / 450.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3212, allocations: 0 / 450.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.3212, allocations: 7.984 kB / 450.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00382/0.325, allocations: 2.126 MB / 452.8 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.325, allocations: 4 kB / 452.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005844/0.3256, allocations: 131.7 kB / 452.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004379/0.326, allocations: 130.6 kB / 453.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.519e-05/0.3261, allocations: 20 kB / 453.1 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004313/0.3304, allocations: 4.465 MB / 457.5 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.3304, allocations: 4 kB / 457.5 MB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.3328, allocations: 1.297 MB / 458.8 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005197/0.3334, allocations: 215 kB / 459 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.3335, allocations: 16 kB / 459.1 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006207/0.3341, allocations: 43.91 kB / 459.1 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.3343, allocations: 68.33 kB / 459.2 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.406e-05/0.3343, allocations: 20 kB / 459.2 MB, free: 2.965 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001292/0.3356, allocations: 0.8819 MB / 460.1 MB, free: 2.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3356, allocations: 0 / 460.1 MB, free: 2.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001249/0.3369, allocations: 328 kB / 460.4 MB, free: 1.762 MB / 366.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.002831/0.3397, allocations: 1.889 MB / 462.3 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.3417, allocations: 1.08 MB / 463.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3417, allocations: 0 / 463.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.3427, allocations: 0.6885 MB / 464.1 MB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/0.3444, allocations: 372.9 kB / 464.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01969/0.3641, allocations: 11.7 MB / 476.1 MB, free: 1.176 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007262/0.3648, allocations: 0.6341 MB / 476.8 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006666/0.3655, allocations: 175.6 kB / 476.9 MB, free: 340 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008024/0.3663, allocations: 0.6086 MB / 477.5 MB, free: 15.72 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3663, allocations: 0 / 477.5 MB, free: 15.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07561/0.4419, allocations: 33.51 MB / 0.4991 GB, free: 14.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.01/15.45, allocations: 3.938 kB / 0.4991 GB, free: 14.08 MB / 430.1 MB " [Timeout remaining time 644] (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.310756535967812]