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.001532/0.001532, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 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.001403/0.001403, allocations: 216 kB / 24.47 MB, free: 3.793 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.33/1.33, allocations: 207.7 MB / 235.3 MB, free: 9.785 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="me",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="me",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.001807/0.001807, allocations: 62.52 kB / 347.2 MB, free: 9.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2309, allocations: 49.15 MB / 396.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009861/0.2408, allocations: 10.49 MB / 406.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005745/0.2465, allocations: 3.153 MB / 410 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001456/0.248, allocations: 40.09 kB / 410 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.2498, allocations: 0.6354 MB / 410.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002123/0.2519, allocations: 0.789 MB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009035/0.2528, allocations: 403.4 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002859/0.2557, allocations: 2.418 MB / 414.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009408/0.2566, allocations: 0.6046 MB / 414.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.2579, allocations: 0.9334 MB / 415.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001038/0.2589, allocations: 0.8476 MB / 416.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002499/0.2592, allocations: 229.6 kB / 416.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004848/0.2597, allocations: 262.3 kB / 417.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000372/0.26, allocations: 464.3 kB / 417.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009034/0.261, allocations: 0.8762 MB / 418.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002992/0.2639, allocations: 2.862 MB / 421.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2639, allocations: 0 / 421.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2639, allocations: 0 / 421.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.712e-05/0.264, allocations: 0 / 421.3 MB, free: 8.387 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.003883/0.2679, allocations: 2.132 MB / 423.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.2679, allocations: 13.14 kB / 423.5 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002614/0.2682, allocations: 225.5 kB / 423.7 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000906/0.2691, allocations: 296.4 kB / 424 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001961/0.271, allocations: 1.045 MB / 425 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.83e-05/0.2711, allocations: 124.6 kB / 425.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002136/0.2713, allocations: 162 kB / 425.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/0.2739, allocations: 1.6 MB / 426.9 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.944e-05/0.274, allocations: 11.94 kB / 426.9 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.2741, allocations: 67.98 kB / 427 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.365e-05/0.2741, allocations: 36 kB / 427 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.2762, allocations: 1.049 MB / 428.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008055/0.2843, allocations: 5.637 MB / 433.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.2858, allocations: 0.5714 MB / 434.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009333/0.2867, allocations: 426.5 kB / 434.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.2867, allocations: 8.641 kB / 434.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.2868, allocations: 43.22 kB / 434.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.675e-06/0.2868, allocations: 0 / 434.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.004921/0.2917, allocations: 2.166 MB / 436.9 MB, free: 9.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.938e-05/0.2918, allocations: 111.5 kB / 437 MB, free: 9.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.2937, allocations: 1.341 MB / 438.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.948e-05/0.2937, allocations: 37.7 kB / 438.4 MB, free: 8.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007275/0.2945, allocations: 0.871 MB / 439.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002262/0.2947, allocations: 273.7 kB / 439.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002919/0.295, allocations: 206.8 kB / 439.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.2951, allocations: 353.9 kB / 440.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006082/0.2958, allocations: 286.4 kB / 440.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.2968, allocations: 0.7849 MB / 441.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.2984, allocations: 1.092 MB / 442.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.2984, allocations: 4 kB / 442.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002363/0.3008, allocations: 1.26 MB / 443.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.3008, allocations: 12 kB / 443.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/0.3008, allocations: 16 kB / 443.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000506/0.3013, allocations: 143 kB / 443.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008446/0.3022, allocations: 251.6 kB / 443.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004156/0.3063, allocations: 4.305 MB / 448.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009652/0.3073, allocations: 59.86 kB / 448.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.3074, allocations: 56.16 kB / 448.3 MB, free: 13.62 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.0005652/0.3079, allocations: 361.3 kB / 448.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.3081, allocations: 143.2 kB / 448.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/0.3099, allocations: 0.8334 MB / 449.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.3099, allocations: 11.94 kB / 449.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3099, allocations: 0 / 449.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.974e-06/0.31, allocations: 3.984 kB / 449.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003884/0.3138, allocations: 2.121 MB / 451.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.872e-06/0.3138, allocations: 4 kB / 451.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005744/0.3144, allocations: 127.8 kB / 451.9 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004417/0.3149, allocations: 130.9 kB / 452.1 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.3149, allocations: 20 kB / 452.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004413/0.3193, allocations: 4.465 MB / 456.6 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.3193, allocations: 7.938 kB / 456.6 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.3217, allocations: 1.297 MB / 457.9 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005511/0.3223, allocations: 222.9 kB / 458.1 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.3225, allocations: 16.19 kB / 458.1 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006174/0.3231, allocations: 43.97 kB / 458.1 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.3232, allocations: 64.27 kB / 458.2 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.3232, allocations: 24 kB / 458.2 MB, free: 3.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001292/0.3245, allocations: 0.878 MB / 459.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3245, allocations: 0 / 459.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001193/0.3257, allocations: 336 kB / 459.4 MB, free: 1.973 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.002736/0.3285, allocations: 1.877 MB / 461.3 MB, free: 12 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.3304, allocations: 1.082 MB / 462.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3304, allocations: 4 kB / 462.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.3315, allocations: 0.6862 MB / 463.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001711/0.3332, allocations: 373.7 kB / 463.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01884/0.352, allocations: 11.71 MB / 475.2 MB, free: 1.383 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007452/0.3528, allocations: 0.6302 MB / 475.8 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006657/0.3534, allocations: 179.6 kB / 476 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007877/0.3542, allocations: 0.6087 MB / 476.6 MB, free: 15.93 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3542, allocations: 0 / 476.6 MB, free: 15.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08502/0.4392, allocations: 33.69 MB / 0.4983 GB, free: 14.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.85, allocations: 15.69 kB / 0.4983 GB, free: 14.1 MB / 430.1 MB " [Timeout remaining time 646] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.457836873829365]