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: 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_3.2.3_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_3.2.3_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.001054/0.001054, allocations: 109.1 kB / 17.93 MB, free: 5.535 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.00101/0.00101, allocations: 189.3 kB / 18.86 MB, free: 4.613 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.296/1.296, allocations: 205.1 MB / 224.7 MB, free: 12.44 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.001135/0.001135, allocations: 47.92 kB / 280.8 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08699/0.08814, allocations: 46.62 MB / 327.4 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008413/0.09659, allocations: 8.141 MB / 335.6 MB, free: 12.6 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004353/0.101, allocations: 2.701 MB / 338.3 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008416/0.1019, allocations: 27.94 kB / 338.3 MB, free: 9.859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.1033, allocations: 0.4903 MB / 338.8 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.1044, allocations: 413 kB / 339.2 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004387/0.1048, allocations: 235.8 kB / 339.4 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001767/0.1066, allocations: 1.498 MB / 340.9 MB, free: 7.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007909/0.1074, allocations: 0.5808 MB / 341.5 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007094/0.1081, allocations: 0.5641 MB / 342.1 MB, free: 6.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005824/0.1087, allocations: 0.6183 MB / 342.7 MB, free: 5.438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001571/0.1089, allocations: 144 kB / 342.8 MB, free: 5.297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003085/0.1092, allocations: 176 kB / 343 MB, free: 5.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.1094, allocations: 286.9 kB / 343.3 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005537/0.11, allocations: 0.6765 MB / 344 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.1113, allocations: 1.418 MB / 345.4 MB, free: 2.742 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1113, allocations: 0 / 345.4 MB, free: 2.742 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1113, allocations: 0 / 345.4 MB, free: 2.742 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.1113, allocations: 4 kB / 345.4 MB, free: 2.738 MB / 286.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.002321/0.1136, allocations: 1.476 MB / 346.9 MB, free: 1.207 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1137, allocations: 19.89 kB / 346.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006351/0.1143, allocations: 187.3 kB / 347.1 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.1154, allocations: 0.7424 MB / 347.8 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.1155, allocations: 77.94 kB / 347.9 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.1156, allocations: 107.9 kB / 348 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.1172, allocations: 0.9464 MB / 348.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.272e-05/0.1172, allocations: 3.938 kB / 348.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.586e-05/0.1173, allocations: 40 kB / 349 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.1173, allocations: 32 kB / 349 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.1185, allocations: 0.6442 MB / 349.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004931/0.1235, allocations: 3.949 MB / 353.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006986/0.1242, allocations: 443.8 kB / 354 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005598/0.1248, allocations: 272.7 kB / 354.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.555e-05/0.1248, allocations: 7.938 kB / 354.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.1249, allocations: 38.56 kB / 354.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.625e-06/0.1249, allocations: 0 / 354.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002995/0.1279, allocations: 1.544 MB / 355.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.829e-05/0.128, allocations: 89.09 kB / 356 MB, free: 7.637 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.1291, allocations: 0.8294 MB / 356.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.1291, allocations: 37.7 kB / 356.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004051/0.1295, allocations: 0.5604 MB / 357.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.1297, allocations: 165.6 kB / 357.6 MB, free: 6.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.1299, allocations: 134.5 kB / 357.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.13, allocations: 333.9 kB / 358 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.1304, allocations: 169.9 kB / 358.2 MB, free: 5.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005465/0.1309, allocations: 475.6 kB / 358.7 MB, free: 4.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000891/0.1318, allocations: 0.6797 MB / 359.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1319, allocations: 7.875 kB / 359.3 MB, free: 3.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0013/0.1332, allocations: 0.7866 MB / 360.1 MB, free: 3.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.1332, allocations: 8 kB / 360.1 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1332, allocations: 8 kB / 360.1 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/0.1335, allocations: 85.94 kB / 360.2 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005035/0.134, allocations: 159.7 kB / 360.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.1365, allocations: 3.15 MB / 363.5 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000607/0.1371, allocations: 35.89 kB / 363.6 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/0.1372, allocations: 39.98 kB / 363.6 MB, free: 15.41 MB / 318.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.0004218/0.1376, allocations: 265.6 kB / 363.9 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.1378, allocations: 90.91 kB / 364 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009847/0.1388, allocations: 0.4951 MB / 364.5 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1388, allocations: 4 kB / 364.5 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1388, allocations: 4 kB / 364.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.1388, allocations: 4.031 kB / 364.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.141, allocations: 1.477 MB / 365.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.141, allocations: 4 kB / 365.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003222/0.1414, allocations: 71.89 kB / 366 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000205/0.1416, allocations: 85.58 kB / 366.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.1416, allocations: 8 kB / 366.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002282/0.1439, allocations: 3.122 MB / 369.2 MB, free: 9.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.1439, allocations: 4.031 kB / 369.2 MB, free: 9.387 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.1452, allocations: 0.7971 MB / 370 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.1455, allocations: 196 kB / 370.2 MB, free: 8.332 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.1456, allocations: 19.94 kB / 370.2 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/0.146, allocations: 31.97 kB / 370.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.641e-05/0.1461, allocations: 31.95 kB / 370.3 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.1462, allocations: 16 kB / 370.3 MB, free: 8.234 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007837/0.147, allocations: 0.5693 MB / 370.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.147, allocations: 0 / 370.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008574/0.1478, allocations: 208 kB / 371.1 MB, free: 7.465 MB / 318.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.0002348/0.1481, allocations: 123.2 kB / 371.2 MB, free: 7.332 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.1495, allocations: 0.7169 MB / 371.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1495, allocations: 0 / 371.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006729/0.1502, allocations: 458.1 kB / 372.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.1514, allocations: 232.6 kB / 372.6 MB, free: 5.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003215/0.1546, allocations: 2.204 MB / 374.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006327/0.1552, allocations: 1.013 MB / 375.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.1554, allocations: 63.44 kB / 375.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1554, allocations: 0 / 375.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of Templates: time 0.1912/0.3466, allocations: 21.29 MB / 397.2 MB, free: 43.55 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../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