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.002416/0.002416, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.002597/0.002597, allocations: 199.9 kB / 18 MB, free: 5.094 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.673/1.673, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3879, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01167/0.3996, allocations: 8.211 MB / 408.5 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006494/0.4062, allocations: 2.704 MB / 411.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.4079, allocations: 23.94 kB / 411.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00251/0.4105, allocations: 0.5481 MB / 411.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002356/0.4129, allocations: 488.1 kB / 412.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.414, allocations: 255.7 kB / 412.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002747/0.4168, allocations: 1.501 MB / 414 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001575/0.4184, allocations: 0.5847 MB / 414.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001331/0.4197, allocations: 0.572 MB / 415.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.4211, allocations: 0.6067 MB / 415.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004828/0.4216, allocations: 140 kB / 415.9 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009056/0.4225, allocations: 180 kB / 416 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004342/0.4229, allocations: 286.9 kB / 416.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001429/0.4244, allocations: 0.6804 MB / 417 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002934/0.4273, allocations: 1.752 MB / 418.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.4274, allocations: 0 / 418.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4274, allocations: 0 / 418.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.892e-05/0.4275, allocations: 0 / 418.7 MB, free: 6.219 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.004316/0.4318, allocations: 1.48 MB / 420.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.054e-05/0.4319, allocations: 8.031 kB / 420.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000433/0.4324, allocations: 152.4 kB / 420.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/0.4335, allocations: 191.3 kB / 420.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.4356, allocations: 0.7579 MB / 421.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.632e-05/0.4357, allocations: 70 kB / 421.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002864/0.436, allocations: 99.91 kB / 421.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002353/0.4384, allocations: 0.9503 MB / 422.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.157e-05/0.4385, allocations: 0 / 422.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/0.4386, allocations: 44 kB / 422.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.426e-05/0.4387, allocations: 27.94 kB / 422.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.4403, allocations: 0.6519 MB / 423.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007324/0.4477, allocations: 3.914 MB / 427.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000854/0.4486, allocations: 459.8 kB / 427.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007046/0.4493, allocations: 276.7 kB / 427.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.096e-05/0.4494, allocations: 4 kB / 427.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.4494, allocations: 38.56 kB / 427.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.726e-06/0.4494, allocations: 0 / 427.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003916/0.4534, allocations: 1.552 MB / 429.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.4535, allocations: 81.11 kB / 429.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/0.4551, allocations: 0.8333 MB / 430.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.793e-05/0.4552, allocations: 37.7 kB / 430.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004777/0.4557, allocations: 0.5682 MB / 430.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.4558, allocations: 165.6 kB / 431.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.4561, allocations: 134.5 kB / 431.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4562, allocations: 334 kB / 431.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004324/0.4567, allocations: 169.9 kB / 431.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000592/0.4573, allocations: 471.6 kB / 432.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.4584, allocations: 0.6797 MB / 432.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.4584, allocations: 4 kB / 432.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001775/0.4602, allocations: 0.783 MB / 433.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.4603, allocations: 12.06 kB / 433.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.4603, allocations: 8 kB / 433.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003704/0.4607, allocations: 89.61 kB / 433.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/0.4613, allocations: 155.7 kB / 433.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002847/0.4641, allocations: 3.149 MB / 437 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008712/0.465, allocations: 35.89 kB / 437.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.4652, allocations: 32 kB / 437.1 MB, free: 2.75 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.0006085/0.4658, allocations: 265.5 kB / 437.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002532/0.466, allocations: 90.97 kB / 437.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001266/0.4673, allocations: 0.4992 MB / 437.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.4673, allocations: 4 kB / 438 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.4674, allocations: 4 kB / 438 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.4674, allocations: 12.05 kB / 438 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003167/0.4705, allocations: 1.478 MB / 439.4 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.4706, allocations: 0 / 439.4 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003696/0.471, allocations: 75.89 kB / 439.5 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002765/0.4713, allocations: 73.84 kB / 439.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.184e-05/0.4713, allocations: 15.98 kB / 439.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.4741, allocations: 3.122 MB / 442.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.4742, allocations: 8.031 kB / 442.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.4758, allocations: 0.7977 MB / 443.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004873/0.4764, allocations: 192.1 kB / 443.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/0.4766, allocations: 27.86 kB / 443.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000584/0.4772, allocations: 23.98 kB / 443.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.4773, allocations: 35.95 kB / 443.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.4774, allocations: 12 kB / 443.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.4785, allocations: 0.581 MB / 444.4 MB, free: 10.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 4e-07/0.4785, allocations: 4 kB / 444.4 MB, free: 10.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001259/0.4798, allocations: 204 kB / 444.6 MB, free: 10.79 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.002185/0.482, allocations: 1.378 MB / 446 MB, free: 9.355 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.4836, allocations: 0.7058 MB / 446.7 MB, free: 8.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.4837, allocations: 0 / 446.7 MB, free: 8.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008265/0.4845, allocations: 457.1 kB / 447.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.4862, allocations: 218.9 kB / 447.3 MB, free: 7.938 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/0.5013, allocations: 7.424 MB / 454.8 MB, free: 68 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009292/0.5023, allocations: 1.013 MB / 455.8 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005812/0.5029, allocations: 111.3 kB / 455.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006265/0.5035, allocations: 391.2 kB / 456.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of SimCode: time 2.605e-06/0.5036, allocations: 0 / 456.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2642/0.7678, allocations: 19.72 MB / 476 MB, free: 11.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.32/20.09, allocations: 11.81 kB / 476 MB, free: 11.12 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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