Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001941, allocations: 187.1 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 47.92 kB / 370.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2683, allocations: 52.19 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01491/0.2832, allocations: 12.23 MB / 434.9 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006529/0.2897, allocations: 3.284 MB / 438.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001437/0.2912, allocations: 43.81 kB / 438.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001901/0.2931, allocations: 0.6994 MB / 438.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002184/0.2953, allocations: 0.7833 MB / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008811/0.2961, allocations: 399.5 kB / 440.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00311/0.2993, allocations: 2.413 MB / 442.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001121/0.3004, allocations: 0.65 MB / 443.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00156/0.3019, allocations: 0.9378 MB / 444.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001385/0.3033, allocations: 0.9839 MB / 445.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003247/0.3036, allocations: 232 kB / 445.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009274/0.3046, allocations: 264 kB / 445.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003989/0.305, allocations: 462.3 kB / 446 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001165/0.3061, allocations: 1.077 MB / 447.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003332/0.3095, allocations: 2.837 MB / 449.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3095, allocations: 0 / 449.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3095, allocations: 4 kB / 449.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.807e-05/0.3095, allocations: 4 kB / 449.9 MB, free: 3.148 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003803/0.3133, allocations: 2.133 MB / 452.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.3133, allocations: 8.031 kB / 452.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002722/0.3136, allocations: 228.1 kB / 452.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009396/0.3146, allocations: 299.4 kB / 452.6 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001925/0.3165, allocations: 1.04 MB / 453.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.3166, allocations: 127.2 kB / 453.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002213/0.3168, allocations: 159.9 kB / 453.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.3193, allocations: 1.5 MB / 455.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.316e-05/0.3194, allocations: 11.95 kB / 455.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.3195, allocations: 60 kB / 455.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.578e-05/0.3196, allocations: 43.94 kB / 455.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002097/0.3217, allocations: 1.053 MB / 456.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009254/0.3309, allocations: 6.113 MB / 462.7 MB, free: 5.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.3325, allocations: 0.565 MB / 463.2 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009214/0.3334, allocations: 430.4 kB / 463.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.549e-05/0.3334, allocations: 8.812 kB / 463.7 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.3335, allocations: 43.22 kB / 463.7 MB, free: 4.871 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.414e-06/0.3335, allocations: 4 kB / 463.7 MB, free: 4.867 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005339/0.3388, allocations: 2.169 MB / 465.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.221e-05/0.3389, allocations: 111.5 kB / 466 MB, free: 2.535 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/0.3409, allocations: 1.302 MB / 467.3 MB, free: 1.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.44e-05/0.341, allocations: 37.7 kB / 467.3 MB, free: 1.176 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007452/0.3417, allocations: 0.871 MB / 468.2 MB, free: 304 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.342, allocations: 277.7 kB / 468.5 MB, free: 24 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/0.3423, allocations: 210.9 kB / 468.7 MB, free: 15.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.3425, allocations: 341.9 kB / 469 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000609/0.3431, allocations: 286.5 kB / 469.3 MB, free: 15.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.3442, allocations: 0.7424 MB / 470 MB, free: 14.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.3459, allocations: 1.084 MB / 471.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.3459, allocations: 4 kB / 471.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002685/0.3486, allocations: 1.268 MB / 472.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.3486, allocations: 12 kB / 472.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.272e-05/0.3486, allocations: 12 kB / 472.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006018/0.3492, allocations: 139 kB / 472.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008824/0.3501, allocations: 255.6 kB / 472.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004657/0.3548, allocations: 4.325 MB / 477.1 MB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.356, allocations: 59.86 kB / 477.2 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.804e-05/0.3561, allocations: 56 kB / 477.2 MB, free: 6.449 MB / 382.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.000683/0.3568, allocations: 368.5 kB / 477.6 MB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.357, allocations: 155 kB / 477.8 MB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001893/0.3589, allocations: 0.8178 MB / 478.6 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.359, allocations: 11.94 kB / 478.6 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.359, allocations: 0 / 478.6 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.359, allocations: 3.984 kB / 478.6 MB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004177/0.3631, allocations: 2.293 MB / 480.9 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.3631, allocations: 4 kB / 480.9 MB, free: 2.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00058/0.3637, allocations: 127.8 kB / 481 MB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004826/0.3642, allocations: 146.9 kB / 481.2 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/0.3643, allocations: 16 kB / 481.2 MB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004786/0.369, allocations: 4.481 MB / 485.6 MB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.369, allocations: 7.938 kB / 485.7 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002683/0.3717, allocations: 1.305 MB / 487 MB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006843/0.3724, allocations: 210.9 kB / 487.2 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/0.3726, allocations: 20 kB / 487.2 MB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006268/0.3732, allocations: 35.97 kB / 487.2 MB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.3734, allocations: 72.41 kB / 487.3 MB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.788e-05/0.3735, allocations: 27.98 kB / 487.3 MB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001462/0.3749, allocations: 0.8742 MB / 488.2 MB, free: 10.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3749, allocations: 4 kB / 488.2 MB, free: 10.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001344/0.3763, allocations: 327.9 kB / 488.5 MB, free: 10.6 MB / 398.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.002996/0.3793, allocations: 1.889 MB / 490.4 MB, free: 8.637 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.3813, allocations: 1.089 MB / 491.5 MB, free: 7.516 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3813, allocations: 0 / 491.5 MB, free: 7.516 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.3824, allocations: 0.6917 MB / 492.2 MB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.384, allocations: 360 kB / 492.5 MB, free: 6.438 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02/0.404, allocations: 11.72 MB / 0.4924 GB, free: 10 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.4051, allocations: 1.213 MB / 0.4936 GB, free: 8.762 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007749/0.4058, allocations: 179.6 kB / 0.4938 GB, free: 8.582 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008676/0.4067, allocations: 0.6125 MB / 0.4944 GB, free: 7.969 MB / 414.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4067, allocations: 0 / 0.4944 GB, free: 7.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1051/0.5118, allocations: 32.17 MB / 0.5258 GB, free: 8.109 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.7/16.21, allocations: 4.062 kB / 0.5258 GB, free: 8.105 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 21.048689471790567]