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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 102.7 kB / 17.59 MB, free: 5.414 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.001041/0.001041, allocations: 191.3 kB / 18.52 MB, free: 4.504 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.329/1.329, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009629/0.000963, allocations: 46.92 kB / 301.3 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08614/0.08712, allocations: 49.45 MB / 350.7 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009555/0.09672, allocations: 8.211 MB / 358.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004786/0.1015, allocations: 2.704 MB / 361.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.1026, allocations: 23.94 kB / 361.7 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.1044, allocations: 0.5519 MB / 362.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001589/0.106, allocations: 480.2 kB / 362.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000719/0.1068, allocations: 263.6 kB / 363 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001861/0.1086, allocations: 1.498 MB / 364.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009283/0.1096, allocations: 0.5884 MB / 365 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008739/0.1105, allocations: 0.5564 MB / 365.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008509/0.1113, allocations: 0.6144 MB / 366.2 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002249/0.1116, allocations: 140 kB / 366.3 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003942/0.112, allocations: 172 kB / 366.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.1122, allocations: 286.9 kB / 366.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000597/0.1128, allocations: 0.6804 MB / 367.5 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001488/0.1143, allocations: 1.725 MB / 369.2 MB, free: 1.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1143, allocations: 8 kB / 369.2 MB, free: 1.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1143, allocations: 0 / 369.2 MB, free: 1.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.1143, allocations: 0 / 369.2 MB, free: 1.773 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.00232/0.1167, allocations: 1.472 MB / 370.7 MB, free: 252 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1167, allocations: 11.89 kB / 370.7 MB, free: 240 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006494/0.1174, allocations: 195.3 kB / 370.9 MB, free: 44 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1524/0.2698, allocations: 0.747 MB / 371.6 MB, free: 25.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.49e-05/0.2699, allocations: 71.75 kB / 371.7 MB, free: 25.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.27, allocations: 98.19 kB / 371.8 MB, free: 25.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.2717, allocations: 0.942 MB / 372.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.2718, allocations: 6.953 kB / 372.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.623e-05/0.2718, allocations: 42.77 kB / 372.8 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/0.2719, allocations: 24.78 kB / 372.8 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.2731, allocations: 0.6555 MB / 373.5 MB, free: 24.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004931/0.2781, allocations: 3.948 MB / 377.4 MB, free: 22.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006749/0.2788, allocations: 441.5 kB / 377.8 MB, free: 22.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005637/0.2794, allocations: 275.2 kB / 378.1 MB, free: 21.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.2794, allocations: 4.875 kB / 378.1 MB, free: 21.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.2794, allocations: 41.25 kB / 378.2 MB, free: 21.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.176e-06/0.2795, allocations: 1.875 kB / 378.2 MB, free: 21.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003017/0.2825, allocations: 1.543 MB / 379.7 MB, free: 20.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.2825, allocations: 86.42 kB / 379.8 MB, free: 20.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.2837, allocations: 0.8358 MB / 380.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.2837, allocations: 31.92 kB / 380.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003127/0.284, allocations: 0.5656 MB / 381.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.433e-05/0.2842, allocations: 165.3 kB / 381.4 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/0.2843, allocations: 135.2 kB / 381.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.757e-05/0.2844, allocations: 337.4 kB / 381.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/0.2848, allocations: 175 kB / 382 MB, free: 19.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004566/0.2852, allocations: 468 kB / 382.5 MB, free: 18.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000804/0.2861, allocations: 0.6835 MB / 383.2 MB, free: 18.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.2861, allocations: 2.75 kB / 383.2 MB, free: 18.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001382/0.2875, allocations: 0.7809 MB / 383.9 MB, free: 18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.2875, allocations: 16.75 kB / 384 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.2875, allocations: 10.62 kB / 384 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002753/0.2878, allocations: 80.55 kB / 384 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/0.2883, allocations: 159.5 kB / 384.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.2902, allocations: 3.147 MB / 387.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000697/0.2909, allocations: 38.77 kB / 387.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.227e-05/0.2909, allocations: 36.61 kB / 387.4 MB, free: 14.84 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.0004061/0.2914, allocations: 269.6 kB / 387.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.2915, allocations: 87.12 kB / 387.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000968/0.2925, allocations: 0.5004 MB / 388.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2925, allocations: 4.094 kB / 388.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2925, allocations: 1.344 kB / 388.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.2925, allocations: 3.859 kB / 388.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.2947, allocations: 1.474 MB / 389.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.2948, allocations: 2.531 kB / 389.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/0.2951, allocations: 74.11 kB / 389.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002052/0.2953, allocations: 71.19 kB / 389.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.806e-05/0.2953, allocations: 13.28 kB / 389.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/0.297, allocations: 3.12 MB / 393 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.297, allocations: 5.5 kB / 393 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.2984, allocations: 0.8001 MB / 393.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/0.2987, allocations: 205.6 kB / 394 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.2988, allocations: 8.75 kB / 394 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004278/0.2992, allocations: 33.75 kB / 394.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.689e-05/0.2993, allocations: 33.3 kB / 394.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.2994, allocations: 16.31 kB / 394.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007721/0.3002, allocations: 0.5708 MB / 394.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3002, allocations: 3.719 kB / 394.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009981/0.3012, allocations: 215.3 kB / 394.9 MB, free: 9.41 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.0002217/0.3014, allocations: 129.9 kB / 395 MB, free: 9.297 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.3027, allocations: 0.7286 MB / 395.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3027, allocations: 1.719 kB / 395.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005849/0.3033, allocations: 452.8 kB / 396.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.3043, allocations: 223.6 kB / 396.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/0.3069, allocations: 1.798 MB / 398.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.3074, allocations: 1.009 MB / 399.2 MB, free: 6.383 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.3076, allocations: 59.69 kB / 399.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3076, allocations: 0 / 399.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of Templates: time 0.02368/0.3313, allocations: 21.29 MB / 420.6 MB, free: 2.953 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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