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.001029/0.001029, allocations: 114.8 kB / 16.63 MB, free: 6.812 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.001309/0.001309, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.23/1.23, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 47.58 kB / 300.2 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08822/0.08947, allocations: 49.44 MB / 349.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008707/0.0982, allocations: 8.179 MB / 357.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004101/0.1023, allocations: 2.673 MB / 360.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007934/0.1031, allocations: 23.94 kB / 360.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001419/0.1046, allocations: 0.4942 MB / 361.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001127/0.1057, allocations: 413.1 kB / 361.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004982/0.1063, allocations: 231.8 kB / 361.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.1078, allocations: 1.495 MB / 363.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000727/0.1085, allocations: 0.5962 MB / 363.8 MB, free: 6.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006405/0.1092, allocations: 0.568 MB / 364.3 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005512/0.1097, allocations: 0.6066 MB / 365 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001473/0.1099, allocations: 140 kB / 365.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002794/0.1102, allocations: 176 kB / 365.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.1104, allocations: 290.9 kB / 365.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005/0.1109, allocations: 0.6725 MB / 366.2 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.1122, allocations: 1.736 MB / 368 MB, free: 2.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1123, allocations: 4 kB / 368 MB, free: 2.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1123, allocations: 0 / 368 MB, free: 2.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.1123, allocations: 3.938 kB / 368 MB, free: 2.258 MB / 302.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.002182/0.1145, allocations: 1.474 MB / 369.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1145, allocations: 8.031 kB / 369.4 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000151/0.1147, allocations: 148.4 kB / 369.6 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006665/0.1153, allocations: 191.3 kB / 369.8 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1746/0.29, allocations: 0.746 MB / 370.5 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.061e-05/0.2901, allocations: 75.78 kB / 370.6 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.2903, allocations: 100.7 kB / 370.7 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001765/0.2921, allocations: 0.9438 MB / 371.6 MB, free: 25.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.4e-05/0.2921, allocations: 3.25 kB / 371.6 MB, free: 25.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.692e-05/0.2922, allocations: 42.14 kB / 371.7 MB, free: 24.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.2922, allocations: 24.84 kB / 371.7 MB, free: 24.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.2934, allocations: 0.6499 MB / 372.4 MB, free: 24.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004651/0.2981, allocations: 3.947 MB / 376.3 MB, free: 22.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006681/0.2988, allocations: 444.7 kB / 376.7 MB, free: 21.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005523/0.2993, allocations: 270.9 kB / 377 MB, free: 21.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.816e-05/0.2994, allocations: 4.125 kB / 377 MB, free: 21.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.2994, allocations: 46.05 kB / 377 MB, free: 21.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.826e-06/0.2994, allocations: 0 / 377 MB, free: 21.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002713/0.3022, allocations: 1.541 MB / 378.6 MB, free: 20.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.3022, allocations: 81.77 kB / 378.7 MB, free: 20.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/0.3033, allocations: 0.8381 MB / 379.5 MB, free: 20.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.3034, allocations: 36.39 kB / 379.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003605/0.3038, allocations: 0.5635 MB / 380.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.726e-05/0.3039, allocations: 163.6 kB / 380.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.304, allocations: 139.8 kB / 380.4 MB, free: 19.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.189e-05/0.3041, allocations: 333.4 kB / 380.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003376/0.3045, allocations: 174.5 kB / 380.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.3049, allocations: 476 kB / 381.4 MB, free: 18.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007869/0.3057, allocations: 0.6793 MB / 382 MB, free: 18.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.3057, allocations: 2.469 kB / 382 MB, free: 18.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001234/0.307, allocations: 0.7773 MB / 382.8 MB, free: 17.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.307, allocations: 13.84 kB / 382.8 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.307, allocations: 9.156 kB / 382.8 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002758/0.3073, allocations: 84.72 kB / 382.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.3078, allocations: 155.7 kB / 383.1 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.3097, allocations: 3.153 MB / 386.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005715/0.3103, allocations: 35.05 kB / 386.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.3104, allocations: 36.64 kB / 386.3 MB, free: 14.72 MB / 302.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.0003173/0.3107, allocations: 266.1 kB / 386.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.3108, allocations: 94.06 kB / 386.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009278/0.3118, allocations: 0.4971 MB / 387.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3118, allocations: 8 kB / 387.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3118, allocations: 9.375 kB / 387.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3118, allocations: 1.922 kB / 387.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.314, allocations: 1.468 MB / 388.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.314, allocations: 3.125 kB / 388.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.3143, allocations: 75.56 kB / 388.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.3145, allocations: 70.92 kB / 388.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.3146, allocations: 9.75 kB / 388.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001573/0.3162, allocations: 3.122 MB / 391.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3162, allocations: 2.75 kB / 391.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.3173, allocations: 0.7999 MB / 392.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002516/0.3176, allocations: 202.5 kB / 392.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.3177, allocations: 13.06 kB / 392.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004253/0.3181, allocations: 26.83 kB / 393 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.549e-05/0.3182, allocations: 40.64 kB / 393 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.3182, allocations: 16.14 kB / 393 MB, free: 9.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006756/0.3189, allocations: 0.5744 MB / 393.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3189, allocations: 0 / 393.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008465/0.3198, allocations: 205.4 kB / 393.8 MB, free: 9.332 MB / 302.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.001359/0.3211, allocations: 1.376 MB / 395.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.3223, allocations: 0.7235 MB / 395.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3223, allocations: 0 / 395.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005116/0.3228, allocations: 464.6 kB / 396.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.3239, allocations: 221.6 kB / 396.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009789/0.3337, allocations: 8.391 MB / 404.9 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.3341, allocations: 1.009 MB / 406 MB, free: 15.85 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004215/0.3345, allocations: 107.3 kB / 406.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003979/0.3349, allocations: 387.2 kB / 406.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3349, allocations: 7.938 kB / 406.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.577/1.912, allocations: 18.86 MB / 425.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/1.913, allocations: 258.8 kB / 425.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.463/4.376, allocations: 3.094 kB / 425.6 MB, free: 12.57 MB / 334.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