Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 199.2 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.5 MB / 245.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007269/0.0007269, allocations: 110.2 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002191/0.0002192, allocations: 4 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.189, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08603/0.275, allocations: 81.13 MB / 489.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/0.2753, allocations: 74.31 kB / 489.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01586/0.2912, allocations: 6.422 MB / 496.3 MB, free: 3.977 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2912, allocations: 0 / 496.3 MB, free: 3.977 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.2912, allocations: 12 kB / 496.3 MB, free: 3.965 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008065/0.292, allocations: 0.5979 MB / 496.9 MB, free: 3.309 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.2921, allocations: 8.031 kB / 496.9 MB, free: 3.301 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.2922, allocations: 60.45 kB / 497 MB, free: 3.242 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.2925, allocations: 272.8 kB / 497.2 MB, free: 2.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.2926, allocations: 76.62 kB / 497.3 MB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.2926, allocations: 32.38 kB / 497.3 MB, free: 2.816 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005174/0.2932, allocations: 339.4 kB / 497.7 MB, free: 2.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.2932, allocations: 7.938 kB / 497.7 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/0.2932, allocations: 15.97 kB / 497.7 MB, free: 2.449 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.2932, allocations: 8 kB / 497.7 MB, free: 2.441 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003966/0.2937, allocations: 222.5 kB / 497.9 MB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.2953, allocations: 1.383 MB / 499.3 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.2956, allocations: 166.6 kB / 499.5 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.2958, allocations: 91.17 kB / 499.6 MB, free: 488 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.2958, allocations: 4 kB / 499.6 MB, free: 484 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.2961, allocations: 165.8 kB / 499.7 MB, free: 300 kB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.174e-06/0.2961, allocations: 0 / 499.7 MB, free: 300 kB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001011/0.2971, allocations: 423 kB / 0.4884 GB, free: 15.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.2972, allocations: 110.8 kB / 0.4885 GB, free: 15.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.2974, allocations: 254.7 kB / 0.4888 GB, free: 15.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.2975, allocations: 37.69 kB / 0.4888 GB, free: 15.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.993e-05/0.2976, allocations: 199.9 kB / 0.489 GB, free: 15.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.18e-05/0.2976, allocations: 71.08 kB / 0.4891 GB, free: 15.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.33e-05/0.2977, allocations: 7.938 kB / 0.4891 GB, free: 15.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.2978, allocations: 334.8 kB / 0.4894 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.2979, allocations: 79.72 kB / 0.4895 GB, free: 14.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.2981, allocations: 167.1 kB / 0.4896 GB, free: 14.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.2984, allocations: 225.8 kB / 0.4898 GB, free: 14.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2984, allocations: 0 / 0.4898 GB, free: 14.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006104/0.299, allocations: 332.3 kB / 0.4901 GB, free: 13.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.2991, allocations: 11.94 kB / 0.4902 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2991, allocations: 0 / 0.4902 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000233/0.2993, allocations: 52.97 kB / 0.4902 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.2996, allocations: 63.92 kB / 0.4903 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.3007, allocations: 1.408 MB / 0.4916 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.3009, allocations: 59.62 kB / 0.4917 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.3009, allocations: 8 kB / 0.4917 GB, free: 12.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001305/0.3011, allocations: 153.8 kB / 0.4919 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.471e-05/0.3011, allocations: 23.72 kB / 0.4919 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.78e-05/0.3012, allocations: 34.17 kB / 0.4919 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.3012, allocations: 4 kB / 0.4919 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.3012, allocations: 0 / 0.4919 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3012, allocations: 3.938 kB / 0.4919 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002829/0.3015, allocations: 337.3 kB / 0.4922 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3015, allocations: 4 kB / 0.4922 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.3017, allocations: 39.98 kB / 0.4923 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001683/0.3018, allocations: 48.81 kB / 0.4923 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.3019, allocations: 11.98 kB / 0.4923 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009118/0.3028, allocations: 1.319 MB / 0.4936 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3028, allocations: 0 / 0.4936 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006476/0.3035, allocations: 357.5 kB / 0.494 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.305e-05/0.3036, allocations: 116.8 kB / 0.4941 GB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/0.3036, allocations: 12.06 kB / 0.4941 GB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.3038, allocations: 19.98 kB / 0.4941 GB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.961e-05/0.3039, allocations: 35.88 kB / 0.4941 GB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.3039, allocations: 4 kB / 0.4942 GB, free: 9.477 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001478/0.304, allocations: 186 kB / 0.4943 GB, free: 9.297 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.304, allocations: 4 kB / 0.4943 GB, free: 9.293 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003727/0.3044, allocations: 99.69 kB / 0.4944 GB, free: 9.195 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001336/0.3046, allocations: 111.1 kB / 0.4945 GB, free: 9.078 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005213/0.3051, allocations: 310.9 kB / 0.4948 GB, free: 8.762 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3051, allocations: 64 / 0.4948 GB, free: 8.762 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002589/0.3054, allocations: 202.6 kB / 0.495 GB, free: 8.551 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.3057, allocations: 36.41 kB / 0.4951 GB, free: 8.512 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.307, allocations: 0.8706 MB / 0.4959 GB, free: 7.609 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.3073, allocations: 0.7716 MB / 0.4967 GB, free: 6.812 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.013e-05/0.3073, allocations: 23.44 kB / 0.4967 GB, free: 6.789 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3073, allocations: 0 / 0.4967 GB, free: 6.789 MB / 378.7 MB Notification: Performance of Templates: time 0.005528/0.3129, allocations: 4.583 MB / 0.5012 GB, free: 2.219 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches