Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors") translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 221.5 MB / 230.3 MB, free: 7.594 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 101.3 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.764e-05/1.765e-05, allocations: 4 kB / 337 MB, free: 10.06 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 50.43 MB / 387.5 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3599/0.468, allocations: 95.38 MB / 482.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.4683, allocations: 83.95 kB / 482.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.058/1.527, allocations: 298.4 MB / 0.763 GB, free: 48.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.493e-06/1.527, allocations: 0 / 0.763 GB, free: 48.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006382/1.527, allocations: 191.9 kB / 0.7632 GB, free: 48.66 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2457 * Number of variables: 2457 Notification: Performance of Generate backend data structure: time 0.02784/1.555, allocations: 7.794 MB / 0.7708 GB, free: 46.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/1.555, allocations: 7.375 kB / 0.7708 GB, free: 46.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01444/1.57, allocations: 2.597 MB / 0.7733 GB, free: 45.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01345/1.583, allocations: 5.52 MB / 0.7787 GB, free: 44.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005571/1.584, allocations: 281.2 kB / 0.779 GB, free: 44.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003088/1.587, allocations: 0.4921 MB / 0.7795 GB, free: 44.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01857/1.606, allocations: 9.789 MB / 0.789 GB, free: 44.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02668/1.632, allocations: 12.11 MB / 0.8009 GB, free: 39.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002378/1.633, allocations: 7.344 kB / 0.8009 GB, free: 39.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00152/1.634, allocations: 6.688 kB / 0.8009 GB, free: 39.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005318/1.635, allocations: 0.6171 MB / 0.8015 GB, free: 39.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05596/1.691, allocations: 42.11 MB / 0.8426 GB, free: 7.246 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009743/1.7, allocations: 10.58 MB / 0.8529 GB, free: 12.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002517/1.703, allocations: 1.707 MB / 0.8546 GB, free: 10.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002513/1.703, allocations: 134 kB / 0.8547 GB, free: 10.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.716e-05/1.703, allocations: 64.56 kB / 0.8548 GB, free: 10.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=233): time 5.7e-06/1.703, allocations: 3.938 kB / 0.8548 GB, free: 10.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=233): time 0.006489/1.71, allocations: 3.535 MB / 0.8582 GB, free: 6.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/1.71, allocations: 77.34 kB / 0.8583 GB, free: 6.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003949/1.714, allocations: 2.471 MB / 0.8607 GB, free: 4.102 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003374/1.714, allocations: 25.7 kB / 0.8608 GB, free: 4.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002613/1.717, allocations: 3.826 MB / 0.8645 GB, free: 196 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/1.718, allocations: 0.782 MB / 0.8653 GB, free: 15.39 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002679/1.718, allocations: 0 / 0.8653 GB, free: 15.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003361/1.719, allocations: 0.5002 MB / 0.8657 GB, free: 14.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002845/1.721, allocations: 1.961 MB / 0.8677 GB, free: 12.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004468/1.726, allocations: 4.103 MB / 0.8717 GB, free: 7.754 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006358/1.732, allocations: 3.534 MB / 0.8751 GB, free: 4.195 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.219e-05/1.732, allocations: 24 kB / 0.8751 GB, free: 4.172 MB / 458.7 MB Notification: Performance of matching and sorting (n=603) (initialization): time 0.2736/2.006, allocations: 6.647 MB / 0.8816 GB, free: 71.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.397e-05/2.006, allocations: 38.19 kB / 0.8817 GB, free: 71.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001615/2.006, allocations: 75.12 kB / 0.8817 GB, free: 71.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/2.007, allocations: 450 kB / 0.8822 GB, free: 71.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004224/2.012, allocations: 1.078 MB / 0.8832 GB, free: 71.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004494/2.016, allocations: 4.288 MB / 0.8874 GB, free: 70.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004266/2.02, allocations: 0.5524 MB / 0.888 GB, free: 70.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008012/2.021, allocations: 250.6 kB / 0.8882 GB, free: 70.07 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (568): * Single equations (assignments): 563 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006667/2.022, allocations: 290.5 kB / 0.8885 GB, free: 69.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006527/2.022, allocations: 274.6 kB / 0.8887 GB, free: 69.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008/2.03, allocations: 4.03 MB / 0.8927 GB, free: 69.74 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006324/2.037, allocations: 3.363 MB / 0.896 GB, free: 69.64 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/2.037, allocations: 6.25 kB / 0.896 GB, free: 69.64 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/2.037, allocations: 10.92 kB / 0.896 GB, free: 69.64 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01798/2.055, allocations: 9.427 MB / 0.9052 GB, free: 68.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/2.055, allocations: 3.906 kB / 0.9052 GB, free: 68.89 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/2.057, allocations: 431.2 kB / 0.9056 GB, free: 68.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006459/2.057, allocations: 309.2 kB / 0.9059 GB, free: 68.88 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/2.057, allocations: 20.39 kB / 0.9059 GB, free: 68.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/2.061, allocations: 3.758 MB / 0.9096 GB, free: 67.54 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/2.061, allocations: 3.625 kB / 0.9096 GB, free: 67.54 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007688/2.069, allocations: 5.885 MB / 0.9153 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/2.07, allocations: 0.6444 MB / 0.916 GB, free: 66.76 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/2.07, allocations: 5.156 kB / 0.916 GB, free: 66.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/2.072, allocations: 117.5 kB / 0.9161 GB, free: 66.76 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000237/2.072, allocations: 151.5 kB / 0.9162 GB, free: 66.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/2.072, allocations: 66.48 kB / 0.9163 GB, free: 66.76 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002758/2.075, allocations: 1.779 MB / 0.918 GB, free: 66.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.01e-07/2.075, allocations: 6.906 kB / 0.918 GB, free: 66.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006519/2.081, allocations: 1.867 MB / 0.9198 GB, free: 66.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (currentQuasiRMSSensor.currentSensor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007971/2.082, allocations: 207.3 kB / 0.92 GB, free: 66.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00948/2.092, allocations: 4.577 MB / 0.9245 GB, free: 66.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/2.092, allocations: 7.031 kB / 0.9245 GB, free: 66.03 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003307/2.095, allocations: 1.778 MB / 0.9263 GB, free: 65.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004342/2.099, allocations: 0.5596 MB / 0.9268 GB, free: 65.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03216/2.132, allocations: 10.91 MB / 0.9375 GB, free: 63.75 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01063/2.142, allocations: 5.794 MB / 0.9431 GB, free: 62.81 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006903/2.149, allocations: 1.698 MB / 0.9448 GB, free: 62.69 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/2.15, allocations: 232 kB / 0.945 GB, free: 62.68 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/2.15, allocations: 0 / 0.945 GB, free: 62.68 MB / 458.7 MB Notification: Performance of Templates: time 0.1002/2.25, allocations: 38.08 MB / 0.9822 GB, free: 55.17 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/TestSensors/TestSensors.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.TestSensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches