Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.00116, allocations: 113.2 kB / 17.73 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 55.91 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08663, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.1894/0.2761, allocations: 7.092 MB / 381.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005092/0.2812, allocations: 2.386 MB / 384.1 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.2824, allocations: 20.59 kB / 384.1 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.2845, allocations: 0.5247 MB / 384.7 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001677/0.2862, allocations: 407 kB / 385.1 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006835/0.2869, allocations: 204.1 kB / 385.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001747/0.2886, allocations: 1.209 MB / 386.5 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008499/0.2895, allocations: 0.5031 MB / 387 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008872/0.2904, allocations: 462.8 kB / 387.4 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.2915, allocations: 0.4886 MB / 387.9 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00038/0.2919, allocations: 114.1 kB / 388 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008811/0.2928, allocations: 153.8 kB / 388.2 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003992/0.2932, allocations: 224 kB / 388.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.2946, allocations: 0.5452 MB / 388.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002084/0.2967, allocations: 1.444 MB / 390.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2967, allocations: 1.188 kB / 390.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.2967, allocations: 0 / 390.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.2967, allocations: 0 / 390.4 MB, free: 5.699 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001918/0.2987, allocations: 1.272 MB / 391.7 MB, free: 4.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2987, allocations: 9.469 kB / 391.7 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001322/0.2989, allocations: 129.4 kB / 391.8 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000456/0.2993, allocations: 152.8 kB / 391.9 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009503/0.3003, allocations: 0.6508 MB / 392.6 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.632e-05/0.3003, allocations: 59.5 kB / 392.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.3005, allocations: 87.34 kB / 392.7 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.3018, allocations: 0.7715 MB / 393.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.189e-05/0.3018, allocations: 14.97 kB / 393.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.618e-05/0.3019, allocations: 32.88 kB / 393.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.3019, allocations: 19.66 kB / 393.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009504/0.3029, allocations: 0.5168 MB / 394.1 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003597/0.3065, allocations: 3.381 MB / 397.5 MB, free: 1.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004938/0.307, allocations: 239.6 kB / 397.7 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002288/0.3072, allocations: 112.1 kB / 397.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.3073, allocations: 7.188 kB / 397.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.824e-05/0.3073, allocations: 33.88 kB / 397.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.743e-06/0.3073, allocations: 0 / 397.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001953/0.3093, allocations: 1.061 MB / 398.9 MB, free: 196 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.3093, allocations: 85.05 kB / 399 MB, free: 96 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009753/0.3103, allocations: 0.733 MB / 399.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.3103, allocations: 30.86 kB / 399.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003729/0.3107, allocations: 0.5042 MB / 400.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.926e-05/0.3108, allocations: 107.1 kB / 400.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.311, allocations: 119.7 kB / 400.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3111, allocations: 378.9 kB / 400.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002591/0.3114, allocations: 126.7 kB / 401 MB, free: 14.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.3118, allocations: 413.7 kB / 401.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007382/0.3126, allocations: 0.5792 MB / 402 MB, free: 13.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.3126, allocations: 3.5 kB / 402 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00102/0.3136, allocations: 0.6131 MB / 402.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.3137, allocations: 12.94 kB / 402.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.3137, allocations: 9.75 kB / 402.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.3139, allocations: 38.45 kB / 402.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.3143, allocations: 139.4 kB / 402.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.3153, allocations: 1.389 MB / 404.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004871/0.3158, allocations: 32.98 kB / 404.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.3159, allocations: 40.41 kB / 404.2 MB, free: 12.08 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003195/0.3162, allocations: 237.3 kB / 404.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3163, allocations: 73.91 kB / 404.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006543/0.317, allocations: 321.7 kB / 404.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.317, allocations: 2.75 kB / 404.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.317, allocations: 1.375 kB / 404.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.317, allocations: 2.156 kB / 404.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.3187, allocations: 1.095 MB / 406 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.3187, allocations: 6.031 kB / 406 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002633/0.319, allocations: 61.02 kB / 406 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.043e-05/0.3191, allocations: 18.42 kB / 406 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.3192, allocations: 11.17 kB / 406.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009128/0.3201, allocations: 1.377 MB / 407.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.3201, allocations: 2.156 kB / 407.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009408/0.321, allocations: 0.5592 MB / 408 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002607/0.3213, allocations: 181.6 kB / 408.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.135e-05/0.3214, allocations: 7.656 kB / 408.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.3217, allocations: 18.27 kB / 408.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.169e-05/0.3218, allocations: 34.19 kB / 408.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.3218, allocations: 11.97 kB / 408.2 MB, free: 8.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007098/0.3225, allocations: 0.5026 MB / 408.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3225, allocations: 0 / 408.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007549/0.3233, allocations: 161.2 kB / 408.9 MB, free: 8.625 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001261/0.3246, allocations: 1.12 MB / 410 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009185/0.3255, allocations: 458.5 kB / 410.5 MB, free: 7.422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3255, allocations: 1.5 kB / 410.5 MB, free: 7.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.3259, allocations: 244.2 kB / 410.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009129/0.3268, allocations: 184.2 kB / 410.9 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008536/0.3354, allocations: 6.271 MB / 417.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/0.3359, allocations: 0.9432 MB / 418.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003739/0.3363, allocations: 89.55 kB / 418.2 MB, free: 1.895 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/0.3367, allocations: 303 kB / 418.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3367, allocations: 0 / 418.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04155/0.3782, allocations: 15.43 MB / 433.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.86, allocations: 19.88 kB / 433.9 MB, free: 3.043 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches