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: 114.5 kB / 17.73 MB, free: 5.297 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.001288/0.001288, allocations: 187 kB / 18.67 MB, free: 4.363 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.442/1.442, allocations: 205.1 MB / 224.5 MB, free: 12.18 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.001845/0.001845, allocations: 51.94 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1228, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.217/0.3398, allocations: 8.176 MB / 382.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005456/0.3453, allocations: 2.734 MB / 385.6 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008047/0.3462, allocations: 24.78 kB / 385.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001758/0.348, allocations: 0.5867 MB / 386.2 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.3492, allocations: 0.5033 MB / 386.7 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000605/0.3498, allocations: 254.4 kB / 386.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.3515, allocations: 1.502 MB / 388.4 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007464/0.3522, allocations: 0.5843 MB / 389 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007389/0.353, allocations: 0.5681 MB / 389.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006173/0.3536, allocations: 0.6096 MB / 390.2 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001672/0.3538, allocations: 139.2 kB / 390.3 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003655/0.3542, allocations: 181.3 kB / 390.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002078/0.3544, allocations: 288.4 kB / 390.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006195/0.355, allocations: 0.6749 MB / 391.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002078/0.3571, allocations: 1.756 MB / 393.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.3571, allocations: 5.75 kB / 393.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3571, allocations: 0.75 kB / 393.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.319e-05/0.3571, allocations: 0 / 393.2 MB, free: 3.891 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.002413/0.3596, allocations: 1.512 MB / 394.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.3596, allocations: 9 kB / 394.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001639/0.3598, allocations: 156.2 kB / 394.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006409/0.3604, allocations: 200.3 kB / 395.1 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.3616, allocations: 0.7625 MB / 395.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.453e-05/0.3617, allocations: 76.78 kB / 395.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.3618, allocations: 105.9 kB / 396 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.3634, allocations: 0.9373 MB / 397 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.476e-05/0.3634, allocations: 11.44 kB / 397 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.175e-05/0.3635, allocations: 36.81 kB / 397 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.3635, allocations: 24.34 kB / 397 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.3648, allocations: 0.6469 MB / 397.7 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005211/0.37, allocations: 3.934 MB / 401.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008036/0.3708, allocations: 437.8 kB / 402 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000687/0.3715, allocations: 287 kB / 402.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.3716, allocations: 3.812 kB / 402.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.3716, allocations: 38.27 kB / 402.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.926e-06/0.3716, allocations: 4 kB / 402.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003179/0.3748, allocations: 1.56 MB / 403.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.3749, allocations: 91.77 kB / 404 MB, free: 13.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.3761, allocations: 0.8419 MB / 404.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.3762, allocations: 31.86 kB / 404.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004114/0.3766, allocations: 0.581 MB / 405.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.3767, allocations: 167.6 kB / 405.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.3769, allocations: 133.1 kB / 405.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.377, allocations: 332.8 kB / 406.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003634/0.3774, allocations: 179.9 kB / 406.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005411/0.3779, allocations: 467.9 kB / 406.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009583/0.3789, allocations: 0.683 MB / 407.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3789, allocations: 2.312 kB / 407.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00147/0.3804, allocations: 0.7926 MB / 408.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.3804, allocations: 14.09 kB / 408.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.3805, allocations: 8.688 kB / 408.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.3808, allocations: 91.55 kB / 408.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005351/0.3813, allocations: 159.2 kB / 408.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.3839, allocations: 3.143 MB / 411.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006915/0.3846, allocations: 38.66 kB / 411.7 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.507e-05/0.3847, allocations: 35.16 kB / 411.7 MB, free: 6.645 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.0004135/0.3851, allocations: 266.2 kB / 411.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.3852, allocations: 94.53 kB / 412 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009858/0.3862, allocations: 0.5018 MB / 412.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3862, allocations: 4.5 kB / 412.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3863, allocations: 1.219 kB / 412.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.3863, allocations: 5.172 kB / 412.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.3887, allocations: 1.466 MB / 414 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.3887, allocations: 6.5 kB / 414 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/0.389, allocations: 76.2 kB / 414.1 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002171/0.3892, allocations: 72.92 kB / 414.2 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.3893, allocations: 8.281 kB / 414.2 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002373/0.3917, allocations: 3.137 MB / 417.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3917, allocations: 2.656 kB / 417.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.393, allocations: 0.8072 MB / 418.1 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.3934, allocations: 206.8 kB / 418.3 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.3935, allocations: 17.62 kB / 418.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004334/0.3939, allocations: 26.39 kB / 418.4 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.401e-05/0.394, allocations: 36.23 kB / 418.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.394, allocations: 17.61 kB / 418.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007937/0.3948, allocations: 0.5738 MB / 419 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3948, allocations: 0 / 419 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008393/0.3957, allocations: 210.1 kB / 419.2 MB, free: 0.5938 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.001623/0.3973, allocations: 1.368 MB / 420.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.3986, allocations: 0.7078 MB / 421.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3986, allocations: 0 / 421.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006672/0.3992, allocations: 454.2 kB / 421.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.4003, allocations: 233.4 kB / 421.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.4105, allocations: 7.481 MB / 429.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006062/0.4112, allocations: 1.009 MB / 430.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004431/0.4116, allocations: 107.3 kB / 430.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004428/0.4121, allocations: 387.3 kB / 430.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4121, allocations: 0 / 430.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04806/0.4602, allocations: 19.43 MB / 450.4 MB, free: 2.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.33, allocations: 9.438 kB / 450.4 MB, free: 2.121 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