Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001273/0.001273, allocations: 108.4 kB / 17.73 MB, free: 5.188 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.001217/0.001217, allocations: 188.2 kB / 18.67 MB, free: 4.254 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.467/1.467, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.00158/0.00158, allocations: 51.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08799/0.08958, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.1853/0.2749, allocations: 8.173 MB / 382.8 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004378/0.2793, allocations: 2.728 MB / 385.6 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006908/0.2801, allocations: 24.28 kB / 385.6 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.2814, allocations: 0.5636 MB / 386.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00101/0.2825, allocations: 482 kB / 386.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005721/0.283, allocations: 254.6 kB / 386.9 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001489/0.2845, allocations: 1.502 MB / 388.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007814/0.2853, allocations: 0.5865 MB / 389 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008528/0.2862, allocations: 0.5584 MB / 389.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007129/0.2869, allocations: 0.6098 MB / 390.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001888/0.2871, allocations: 140 kB / 390.3 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004078/0.2875, allocations: 181.3 kB / 390.4 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.2877, allocations: 284 kB / 390.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005693/0.2883, allocations: 0.6792 MB / 391.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002025/0.2903, allocations: 1.756 MB / 393.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2903, allocations: 5.156 kB / 393.2 MB, free: 3.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2904, allocations: 0 / 393.2 MB, free: 3.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.857e-05/0.2904, allocations: 0 / 393.2 MB, free: 3.953 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00242/0.2928, allocations: 1.511 MB / 394.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.2929, allocations: 10.38 kB / 394.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.293, allocations: 147.4 kB / 394.8 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006349/0.2937, allocations: 203.7 kB / 395 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.2948, allocations: 0.7604 MB / 395.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.2949, allocations: 77.31 kB / 395.9 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.295, allocations: 105.5 kB / 396 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.2965, allocations: 0.9463 MB / 396.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.256e-05/0.2965, allocations: 2.219 kB / 396.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.181e-05/0.2966, allocations: 45.28 kB / 397 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.2966, allocations: 23.25 kB / 397 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.2978, allocations: 0.6467 MB / 397.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004848/0.3027, allocations: 3.932 MB / 401.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007204/0.3034, allocations: 435.2 kB / 402 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006257/0.304, allocations: 286.4 kB / 402.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.3041, allocations: 4.375 kB / 402.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.3041, allocations: 41.55 kB / 402.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.374e-06/0.3042, allocations: 4 kB / 402.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003245/0.3074, allocations: 1.558 MB / 403.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.3075, allocations: 85.3 kB / 403.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.3087, allocations: 0.8421 MB / 404.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.3087, allocations: 37.42 kB / 404.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004567/0.3092, allocations: 0.5777 MB / 405.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.3093, allocations: 170.4 kB / 405.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/0.3095, allocations: 134 kB / 405.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3097, allocations: 331.6 kB / 406 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.3101, allocations: 172.1 kB / 406.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006226/0.3107, allocations: 484.1 kB / 406.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.3117, allocations: 0.6838 MB / 407.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.3117, allocations: 2.469 kB / 407.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00147/0.3132, allocations: 0.7931 MB / 408.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.3133, allocations: 9 kB / 408.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.3133, allocations: 9.094 kB / 408.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002783/0.3136, allocations: 86.98 kB / 408.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004887/0.3141, allocations: 159.7 kB / 408.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/0.3169, allocations: 3.147 MB / 411.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007362/0.3176, allocations: 38.06 kB / 411.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.957e-05/0.3177, allocations: 31.41 kB / 411.6 MB, free: 6.711 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004806/0.3182, allocations: 265.3 kB / 411.9 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.3183, allocations: 94.48 kB / 412 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.3194, allocations: 0.5067 MB / 412.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3194, allocations: 4.5 kB / 412.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3194, allocations: 1.094 kB / 412.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.3194, allocations: 5.578 kB / 412.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002365/0.3218, allocations: 1.469 MB / 414 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3218, allocations: 1.656 kB / 414 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/0.3221, allocations: 72.34 kB / 414 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002223/0.3224, allocations: 73.58 kB / 414.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.3224, allocations: 8.438 kB / 414.1 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002628/0.325, allocations: 3.141 MB / 417.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3251, allocations: 2.75 kB / 417.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.3264, allocations: 0.8094 MB / 418.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.3268, allocations: 196.3 kB / 418.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.3269, allocations: 20.39 kB / 418.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.3273, allocations: 23.2 kB / 418.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.121e-05/0.3274, allocations: 39.3 kB / 418.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.3275, allocations: 19.03 kB / 418.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000807/0.3283, allocations: 0.5733 MB / 418.9 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3283, allocations: 0 / 418.9 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008514/0.3291, allocations: 208.2 kB / 419.1 MB, free: 0.6602 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (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.001853/0.331, allocations: 1.367 MB / 420.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.3324, allocations: 0.716 MB / 421.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3324, allocations: 0 / 421.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007053/0.3331, allocations: 453.2 kB / 421.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.3344, allocations: 231.1 kB / 421.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.3455, allocations: 7.479 MB / 429.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007291/0.3463, allocations: 1.013 MB / 430.4 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004522/0.3468, allocations: 111.3 kB / 430.5 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004997/0.3473, allocations: 387.3 kB / 430.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3473, allocations: 0 / 430.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05588/0.4032, allocations: 19.43 MB / 450.3 MB, free: 2.211 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.61, allocations: 9.438 kB / 450.3 MB, free: 2.203 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches