Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_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.001437/0.001437, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.00162/0.00162, allocations: 195 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2693, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009341/0.2787, allocations: 8.218 MB / 408.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004306/0.283, allocations: 2.695 MB / 411.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006812/0.2837, allocations: 23.94 kB / 411.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001353/0.2851, allocations: 0.5754 MB / 411.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009908/0.2861, allocations: 0.5041 MB / 412.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004534/0.2866, allocations: 259.7 kB / 412.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.2879, allocations: 1.502 MB / 414 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000732/0.2887, allocations: 0.5886 MB / 414.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006171/0.2893, allocations: 0.572 MB / 415.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005847/0.2899, allocations: 0.6066 MB / 415.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.29, allocations: 140 kB / 415.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002815/0.2903, allocations: 176 kB / 416.1 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.2905, allocations: 290.9 kB / 416.4 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005468/0.2911, allocations: 0.6687 MB / 417 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.2928, allocations: 1.767 MB / 418.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2928, allocations: 0 / 418.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2928, allocations: 0 / 418.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.2928, allocations: 0 / 418.8 MB, free: 6.145 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002333/0.2952, allocations: 1.513 MB / 420.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.2952, allocations: 8.031 kB / 420.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.2954, allocations: 152.4 kB / 420.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006452/0.296, allocations: 196 kB / 420.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.2972, allocations: 0.7779 MB / 421.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.863e-05/0.2972, allocations: 74 kB / 421.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.2974, allocations: 96 kB / 421.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.2989, allocations: 0.9347 MB / 422.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.2989, allocations: 19.88 kB / 422.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.714e-05/0.299, allocations: 40 kB / 422.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.299, allocations: 24 kB / 422.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.3003, allocations: 0.6481 MB / 423.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004685/0.305, allocations: 3.931 MB / 427.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006936/0.3057, allocations: 451.8 kB / 427.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005879/0.3063, allocations: 272.7 kB / 427.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.3063, allocations: 7.938 kB / 427.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.3064, allocations: 42.56 kB / 428 MB, free: 12.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.174e-06/0.3064, allocations: 0 / 428 MB, free: 12.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002811/0.3092, allocations: 1.566 MB / 429.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.3093, allocations: 85.11 kB / 429.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.3103, allocations: 0.8372 MB / 430.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/0.3104, allocations: 33.7 kB / 430.5 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.3108, allocations: 0.5814 MB / 431.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3109, allocations: 170.6 kB / 431.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.3111, allocations: 138.5 kB / 431.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3112, allocations: 330 kB / 431.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003583/0.3116, allocations: 177.9 kB / 431.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005408/0.3121, allocations: 467.6 kB / 432.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009131/0.3131, allocations: 0.6796 MB / 433 MB, free: 7.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3131, allocations: 4 kB / 433 MB, free: 7.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001293/0.3144, allocations: 0.795 MB / 433.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3144, allocations: 8 kB / 433.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.3144, allocations: 12 kB / 433.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002618/0.3147, allocations: 85.88 kB / 433.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004985/0.3152, allocations: 155.7 kB / 434.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/0.3176, allocations: 3.142 MB / 437.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005655/0.3182, allocations: 43.92 kB / 437.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.607e-05/0.3182, allocations: 32 kB / 437.3 MB, free: 2.574 MB / 350.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.0003859/0.3186, allocations: 271 kB / 437.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.3188, allocations: 87.44 kB / 437.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009464/0.3197, allocations: 0.503 MB / 438.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3197, allocations: 7.984 kB / 438.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3198, allocations: 4 kB / 438.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3198, allocations: 0 / 438.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.3218, allocations: 1.475 MB / 439.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3219, allocations: 4.031 kB / 439.6 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003153/0.3222, allocations: 79.89 kB / 439.7 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002183/0.3224, allocations: 69.69 kB / 439.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.3225, allocations: 12 kB / 439.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/0.3247, allocations: 3.122 MB / 442.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3247, allocations: 4.031 kB / 442.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.326, allocations: 0.8059 MB / 443.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002853/0.3263, allocations: 212.5 kB / 443.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.913e-05/0.3264, allocations: 11.94 kB / 443.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004259/0.3268, allocations: 31.97 kB / 444 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.508e-05/0.3269, allocations: 35.95 kB / 444 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.327, allocations: 12 kB / 444 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007349/0.3277, allocations: 0.5732 MB / 444.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3277, allocations: 3.938 kB / 444.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007873/0.3285, allocations: 208 kB / 444.8 MB, free: 10.61 MB / 366.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.001612/0.3301, allocations: 1.378 MB / 446.2 MB, free: 9.176 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.3314, allocations: 0.7128 MB / 446.9 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3314, allocations: 0 / 446.9 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006825/0.3321, allocations: 458.2 kB / 447.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.3331, allocations: 226.2 kB / 447.5 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009912/0.343, allocations: 7.477 MB / 455 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006096/0.3437, allocations: 1.009 MB / 456 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004297/0.3441, allocations: 107.3 kB / 456.1 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004763/0.3446, allocations: 391.3 kB / 456.5 MB, free: 14.29 MB / 382.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3446, allocations: 0 / 456.5 MB, free: 14.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04925/0.3938, allocations: 19.43 MB / 476 MB, free: 11.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.38, allocations: 7.938 kB / 476 MB, free: 11.16 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches