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.001829/0.001829, allocations: 114.4 kB / 17.74 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.001908/0.001908, allocations: 183.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.414/1.414, 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.001816/0.001816, allocations: 47.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09558, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.1743/0.27, allocations: 8.175 MB / 382.8 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005356/0.2754, allocations: 2.724 MB / 385.6 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.2767, allocations: 27.44 kB / 385.6 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001747/0.2784, allocations: 0.5581 MB / 386.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00166/0.2801, allocations: 482.3 kB / 386.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006611/0.2808, allocations: 259.1 kB / 386.9 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001819/0.2826, allocations: 1.506 MB / 388.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007762/0.2834, allocations: 0.5795 MB / 389 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008814/0.2843, allocations: 0.5596 MB / 389.5 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008032/0.2851, allocations: 0.6086 MB / 390.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002409/0.2854, allocations: 141 kB / 390.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004663/0.2858, allocations: 184.6 kB / 390.4 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001915/0.286, allocations: 283.5 kB / 390.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000614/0.2867, allocations: 0.6796 MB / 391.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002118/0.2888, allocations: 1.757 MB / 393.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2888, allocations: 0 / 393.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.2888, allocations: 1.344 kB / 393.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.2889, allocations: 3.938 kB / 393.2 MB, free: 3.957 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.002363/0.2912, allocations: 1.507 MB / 394.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2913, allocations: 9.562 kB / 394.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001454/0.2914, allocations: 148.4 kB / 394.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006136/0.292, allocations: 200.1 kB / 395 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.2932, allocations: 0.7741 MB / 395.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.933e-05/0.2933, allocations: 73.94 kB / 395.9 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.2934, allocations: 101.6 kB / 396 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.2949, allocations: 0.9478 MB / 396.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/0.2949, allocations: 2.312 kB / 396.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.128e-05/0.295, allocations: 40.91 kB / 396.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.295, allocations: 24.44 kB / 397 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.2962, allocations: 0.6501 MB / 397.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004989/0.3012, allocations: 3.927 MB / 401.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007511/0.302, allocations: 437.4 kB / 402 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000627/0.3026, allocations: 290.4 kB / 402.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.3027, allocations: 6.344 kB / 402.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.3027, allocations: 41.31 kB / 402.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.424e-06/0.3027, allocations: 0 / 402.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003639/0.3064, allocations: 1.565 MB / 403.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.995e-05/0.3065, allocations: 81.58 kB / 404 MB, free: 13.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.3078, allocations: 0.8456 MB / 404.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.425e-05/0.3079, allocations: 35.92 kB / 404.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004567/0.3084, allocations: 0.5785 MB / 405.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.3085, allocations: 166.8 kB / 405.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.3087, allocations: 132.6 kB / 405.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3089, allocations: 332.6 kB / 406 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000374/0.3093, allocations: 184.2 kB / 406.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006002/0.3099, allocations: 468.1 kB / 406.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.3109, allocations: 0.6797 MB / 407.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.3109, allocations: 6.469 kB / 407.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001496/0.3124, allocations: 0.7849 MB / 408.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.3124, allocations: 9.875 kB / 408.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.3125, allocations: 9.031 kB / 408.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002937/0.3128, allocations: 95.39 kB / 408.2 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005205/0.3133, allocations: 154.7 kB / 408.4 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002801/0.3161, allocations: 3.156 MB / 411.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007321/0.3169, allocations: 42.44 kB / 411.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.438e-05/0.3169, allocations: 35.62 kB / 411.6 MB, free: 6.703 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.0005134/0.3174, allocations: 260.8 kB / 411.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002142/0.3177, allocations: 90.16 kB / 412 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.3188, allocations: 0.4986 MB / 412.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3188, allocations: 4.844 kB / 412.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.3188, allocations: 1.406 kB / 412.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3188, allocations: 3.984 kB / 412.5 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.3215, allocations: 1.475 MB / 414 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3215, allocations: 1.219 kB / 414 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.3219, allocations: 77.2 kB / 414 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002413/0.3221, allocations: 64.31 kB / 414.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.009e-05/0.3222, allocations: 20.27 kB / 414.1 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002686/0.3249, allocations: 3.134 MB / 417.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.3249, allocations: 6.344 kB / 417.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.3265, allocations: 0.8036 MB / 418.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004957/0.327, allocations: 199.2 kB / 418.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002227/0.3272, allocations: 19.73 kB / 418.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005269/0.3277, allocations: 23.67 kB / 418.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.3279, allocations: 43.36 kB / 418.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/0.3279, allocations: 11.59 kB / 418.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009653/0.3289, allocations: 0.5768 MB / 418.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3289, allocations: 0 / 418.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001116/0.33, allocations: 203.7 kB / 419.1 MB, free: 0.668 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.00198/0.332, allocations: 1.383 MB / 420.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001426/0.3335, allocations: 0.7069 MB / 421.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3335, allocations: 0 / 421.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007468/0.3342, allocations: 454.3 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.001409/0.3357, allocations: 229.8 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.01316/0.3488, allocations: 7.48 MB / 429.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008779/0.3498, allocations: 1.013 MB / 430.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005296/0.3503, allocations: 107.3 kB / 430.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005412/0.3509, allocations: 387.3 kB / 430.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3509, allocations: 0 / 430.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05789/0.4088, allocations: 19.42 MB / 450.3 MB, free: 2.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.69, allocations: 9.438 kB / 450.3 MB, free: 2.223 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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