Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 98.25 kB / 17.3 MB, free: 6.344 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.001656/0.001656, allocations: 178.3 kB / 18.2 MB, free: 5.531 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.601/1.601, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005006/0.0005005, allocations: 12 kB / 281.4 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1026, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002618/0.1052, allocations: 2.344 MB / 331.3 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.1064, allocations: 0.6983 MB / 332 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.1065, allocations: 7.938 kB / 332 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.1067, allocations: 31.77 kB / 332 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.1068, allocations: 63.47 kB / 332.1 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.1071, allocations: 83.84 kB / 332.2 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003472/0.1075, allocations: 350.5 kB / 332.5 MB, free: 180 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.1077, allocations: 65.16 kB / 332.6 MB, free: 120 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.1079, allocations: 127.6 kB / 332.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.1081, allocations: 147.3 kB / 332.9 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.844e-05/0.1081, allocations: 16 kB / 332.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.983e-05/0.1082, allocations: 16 kB / 332.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.688e-05/0.1083, allocations: 47.77 kB / 332.9 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.1084, allocations: 153.1 kB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.1088, allocations: 319 kB / 333.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1088, allocations: 0 / 333.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1088, allocations: 0 / 333.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1088, allocations: 0 / 333.4 MB, free: 15.3 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001422/0.1102, allocations: 0.6198 MB / 334 MB, free: 14.63 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1103, allocations: 8.031 kB / 334 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.1103, allocations: 24.66 kB / 334.1 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.1107, allocations: 264.7 kB / 334.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.1107, allocations: 12.81 kB / 334.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/0.1107, allocations: 24.38 kB / 334.4 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007342/0.1115, allocations: 310.9 kB / 334.7 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1115, allocations: 0 / 334.7 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.201e-05/0.1115, allocations: 7.938 kB / 334.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.1116, allocations: 11.94 kB / 334.7 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007759/0.1123, allocations: 289.6 kB / 335 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.1143, allocations: 1.077 MB / 336 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001899/0.1162, allocations: 482.3 kB / 336.5 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004593/0.1167, allocations: 160.8 kB / 336.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.1167, allocations: 0 / 336.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.1167, allocations: 34.5 kB / 336.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.1167, allocations: 0 / 336.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.004905/0.1217, allocations: 1.132 MB / 337.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.1217, allocations: 59.41 kB / 337.9 MB, free: 10.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.1219, allocations: 212.2 kB / 338.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.122, allocations: 29.7 kB / 338.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1221, allocations: 167.9 kB / 338.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.1221, allocations: 43.36 kB / 338.3 MB, free: 10.1 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.1222, allocations: 21.72 kB / 338.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1224, allocations: 330.8 kB / 338.7 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.1227, allocations: 111.9 kB / 338.8 MB, free: 9.633 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000342/0.123, allocations: 133.6 kB / 338.9 MB, free: 9.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006641/0.1237, allocations: 248.9 kB / 339.2 MB, free: 9.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1237, allocations: 0 / 339.2 MB, free: 9.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002838/0.1266, allocations: 0.6968 MB / 339.9 MB, free: 8.543 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1266, allocations: 4 kB / 339.9 MB, free: 8.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1266, allocations: 0 / 339.9 MB, free: 8.539 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007428/0.1274, allocations: 232.7 kB / 340.1 MB, free: 8.309 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.1276, allocations: 43.91 kB / 340.1 MB, free: 8.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006608/0.1342, allocations: 2.614 MB / 342.7 MB, free: 5.516 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.1345, allocations: 39.88 kB / 342.8 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.1345, allocations: 4 kB / 342.8 MB, free: 5.473 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.1347, allocations: 137.8 kB / 342.9 MB, free: 5.328 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.1348, allocations: 19.75 kB / 342.9 MB, free: 5.309 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.281e-05/0.1348, allocations: 29.52 kB / 343 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1349, allocations: 3.938 kB / 343 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.1349, allocations: 0 / 343 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1349, allocations: 0 / 343 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003941/0.1353, allocations: 333.2 kB / 343.3 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.1353, allocations: 0 / 343.3 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.1354, allocations: 35.91 kB / 343.3 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006407/0.1361, allocations: 232.7 kB / 343.6 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.1361, allocations: 4 kB / 343.6 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006179/0.1423, allocations: 2.599 MB / 346.2 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1423, allocations: 0 / 346.2 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.1456, allocations: 0.9135 MB / 347.1 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.393e-05/0.1457, allocations: 104.9 kB / 347.2 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/0.1457, allocations: 3.938 kB / 347.2 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.146, allocations: 44.03 kB / 347.2 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.1461, allocations: 7.984 kB / 347.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.1461, allocations: 4 kB / 347.2 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001702/0.1463, allocations: 161.6 kB / 347.4 MB, free: 0.625 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1463, allocations: 0 / 347.4 MB, free: 0.625 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004712/0.1467, allocations: 79.84 kB / 347.5 MB, free: 0.5469 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * 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 (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001572/0.1469, allocations: 103.2 kB / 347.6 MB, free: 444 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.1485, allocations: 482.3 kB / 348 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1485, allocations: 0 / 348 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.1495, allocations: 355.2 kB / 348.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.1499, allocations: 28.64 kB / 348.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.1512, allocations: 0.6987 MB / 349.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.1515, allocations: 0.744 MB / 349.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.038e-05/0.1516, allocations: 17.55 kB / 349.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.1517, allocations: 11.44 kB / 349.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1517, allocations: 4 kB / 349.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of Templates: time 0.008934/0.1606, allocations: 4.592 MB / 354.5 MB, free: 9.457 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches