Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.SingularTransfomer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|basicTransformer.i1|basicTransformer.i2",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer") translateModel(ModelicaTest.Electrical.SingularTransfomer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|basicTransformer.i1|basicTransformer.i2",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008906/0.0008907, allocations: 175.8 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007018/0.0007019, allocations: 89.03 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3188/0.3188, allocations: 43.57 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.0003568, allocations: 16 kB / 432 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 58.85 MB / 490.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransfomer): time 0.002179/0.1057, allocations: 2.127 MB / 492.9 MB, free: 8.742 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008538/0.1066, allocations: 0.6165 MB / 493.6 MB, free: 8.117 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.1067, allocations: 4 kB / 493.6 MB, free: 8.113 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.1069, allocations: 31.77 kB / 493.6 MB, free: 8.082 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.107, allocations: 63.47 kB / 493.7 MB, free: 8.02 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002517/0.1073, allocations: 47.94 kB / 493.7 MB, free: 7.973 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003127/0.1076, allocations: 270.8 kB / 494 MB, free: 7.707 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.1078, allocations: 69.03 kB / 494 MB, free: 7.637 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001909/0.108, allocations: 95.62 kB / 494.1 MB, free: 7.543 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.1082, allocations: 103.5 kB / 494.2 MB, free: 7.441 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.1082, allocations: 12 kB / 494.2 MB, free: 7.43 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.827e-05/0.1082, allocations: 12 kB / 494.3 MB, free: 7.418 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.157e-05/0.1083, allocations: 39.72 kB / 494.3 MB, free: 7.379 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.1084, allocations: 129.2 kB / 494.4 MB, free: 7.246 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.1087, allocations: 207.7 kB / 494.6 MB, free: 7.043 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.1087, allocations: 4 kB / 494.6 MB, free: 7.039 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.879e-06/0.1087, allocations: 0 / 494.6 MB, free: 7.039 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.1087, allocations: 3.938 kB / 494.6 MB, free: 7.035 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0008139/0.1095, allocations: 0.4951 MB / 495.1 MB, free: 6.492 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.1096, allocations: 12.03 kB / 495.1 MB, free: 6.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.1096, allocations: 24.66 kB / 495.2 MB, free: 6.457 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.11, allocations: 255.8 kB / 495.4 MB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.11, allocations: 12.81 kB / 495.4 MB, free: 6.156 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.11, allocations: 20.38 kB / 495.4 MB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003466/0.1104, allocations: 191.6 kB / 495.6 MB, free: 5.945 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.1104, allocations: 3.938 kB / 495.6 MB, free: 5.941 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.1105, allocations: 12 kB / 495.6 MB, free: 5.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.1105, allocations: 4 kB / 495.6 MB, free: 5.926 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/0.1107, allocations: 149.6 kB / 495.8 MB, free: 5.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.112, allocations: 0.8142 MB / 496.6 MB, free: 4.887 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.1122, allocations: 98.42 kB / 496.7 MB, free: 4.781 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.701e-05/0.1123, allocations: 48.84 kB / 496.8 MB, free: 4.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.1123, allocations: 8 kB / 496.8 MB, free: 4.723 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.1123, allocations: 30.56 kB / 496.8 MB, free: 4.684 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.1123, allocations: 0 / 496.8 MB, free: 4.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.00164/0.114, allocations: 0.7521 MB / 497.5 MB, free: 3.875 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.114, allocations: 55.39 kB / 497.6 MB, free: 3.809 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.1142, allocations: 207.8 kB / 497.8 MB, free: 3.594 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1142, allocations: 30.36 kB / 497.8 MB, free: 3.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.411e-05/0.1143, allocations: 167.8 kB / 498 MB, free: 3.391 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.424e-05/0.1144, allocations: 55.25 kB / 498 MB, free: 3.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.06e-05/0.1144, allocations: 4 kB / 498 MB, free: 3.332 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1145, allocations: 334.8 kB / 498.4 MB, free: 2.996 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.1146, allocations: 63.97 kB / 498.4 MB, free: 2.934 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.1148, allocations: 109.1 kB / 498.5 MB, free: 2.809 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.1151, allocations: 188.9 kB / 498.7 MB, free: 2.605 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1151, allocations: 0 / 498.7 MB, free: 2.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004955/0.1156, allocations: 294.3 kB / 499 MB, free: 2.309 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1156, allocations: 4 kB / 499 MB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1156, allocations: 0 / 499 MB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002537/0.1159, allocations: 73.66 kB / 499.1 MB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.1161, allocations: 35.98 kB / 499.1 MB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1727/0.2888, allocations: 2.795 MB / 0.4902 GB, free: 41.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.2891, allocations: 14.95 kB / 0.4902 GB, free: 41.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2891, allocations: 10.06 kB / 0.4902 GB, free: 41.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.2892, allocations: 139.2 kB / 0.4903 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.622e-05/0.2893, allocations: 22.03 kB / 0.4903 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.484e-05/0.2893, allocations: 24.8 kB / 0.4904 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2893, allocations: 1.906 kB / 0.4904 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.2893, allocations: 3.906 kB / 0.4904 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.2893, allocations: 2.969 kB / 0.4904 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.2896, allocations: 280.6 kB / 0.4906 GB, free: 41.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2896, allocations: 1.938 kB / 0.4906 GB, free: 41.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.729e-05/0.2897, allocations: 19.92 kB / 0.4907 GB, free: 41.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/0.2899, allocations: 73.81 kB / 0.4907 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.29, allocations: 4.938 kB / 0.4907 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.2915, allocations: 2.803 MB / 0.4935 GB, free: 39.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2915, allocations: 3.953 kB / 0.4935 GB, free: 39.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006288/0.2921, allocations: 405.7 kB / 0.4939 GB, free: 38.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.2922, allocations: 96.73 kB / 0.494 GB, free: 38.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.2922, allocations: 3.25 kB / 0.494 GB, free: 38.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.2924, allocations: 20.47 kB / 0.494 GB, free: 38.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.647e-05/0.2924, allocations: 15.45 kB / 0.494 GB, free: 38.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.2925, allocations: 4.844 kB / 0.494 GB, free: 38.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.2926, allocations: 153.9 kB / 0.4941 GB, free: 38.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2926, allocations: 0 / 0.4941 GB, free: 38.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003397/0.293, allocations: 67.03 kB / 0.4942 GB, free: 38.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (basicTransformer.i1) * 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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.598e-05/0.293, allocations: 101.6 kB / 0.4943 GB, free: 38.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006301/0.2937, allocations: 425.4 kB / 0.4947 GB, free: 38.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2937, allocations: 1.438 kB / 0.4947 GB, free: 38.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000363/0.2941, allocations: 334.8 kB / 0.495 GB, free: 38.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.2944, allocations: 28.81 kB / 0.4951 GB, free: 38.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000887/0.2953, allocations: 0.638 MB / 0.4957 GB, free: 37.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.2955, allocations: 0.7506 MB / 0.4964 GB, free: 37.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.231e-05/0.2956, allocations: 18.45 kB / 0.4964 GB, free: 37.13 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2956, allocations: 0 / 0.4964 GB, free: 37.13 MB / 378.7 MB Notification: Performance of Templates: time 0.006079/0.3017, allocations: 4.482 MB / 0.5008 GB, free: 36.85 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/SingularTransfomer/SingularTransfomer.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches