Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001127/0.001128, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.277, allocations: 50.55 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004074/0.2811, allocations: 3.15 MB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2826, allocations: 0.8178 MB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.2828, allocations: 7.938 kB / 412.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.283, allocations: 59.42 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.2832, allocations: 103 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.2836, allocations: 119.7 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004251/0.284, allocations: 418.2 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.2842, allocations: 139.7 kB / 413.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002373/0.2845, allocations: 167.4 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.2847, allocations: 175.2 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.633e-05/0.2847, allocations: 36 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.089e-05/0.2848, allocations: 40 kB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.497e-05/0.2849, allocations: 83.67 kB / 414.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.2851, allocations: 191.1 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004213/0.2855, allocations: 428.2 kB / 414.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2855, allocations: 0 / 414.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2855, allocations: 0 / 414.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.2855, allocations: 0 / 414.7 MB, free: 11.63 MB / 334.1 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.001011/0.2866, allocations: 0.647 MB / 415.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2866, allocations: 11.97 kB / 415.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.006e-05/0.2867, allocations: 74.72 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.2869, allocations: 44.55 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.2873, allocations: 297.1 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.082e-05/0.2874, allocations: 80.56 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.2874, allocations: 32.38 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.288, allocations: 334.7 kB / 416.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.288, allocations: 0 / 416.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.288, allocations: 16 kB / 416.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.288, allocations: 12 kB / 416.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.2884, allocations: 218.5 kB / 416.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.2902, allocations: 1.36 MB / 417.8 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.2905, allocations: 174.5 kB / 417.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.2907, allocations: 92.81 kB / 418 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.2907, allocations: 4 kB / 418 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002804/0.291, allocations: 153.3 kB / 418.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.502e-06/0.291, allocations: 4 kB / 418.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001093/0.2921, allocations: 406.9 kB / 418.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.639e-05/0.2922, allocations: 114.8 kB / 418.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.2924, allocations: 262.7 kB / 419 MB, free: 7.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.2925, allocations: 29.7 kB / 419 MB, free: 6.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.2926, allocations: 207.8 kB / 419.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.424e-05/0.2927, allocations: 67.09 kB / 419.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.2928, allocations: 65.94 kB / 419.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.2929, allocations: 334.8 kB / 419.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.2931, allocations: 80.62 kB / 419.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.2933, allocations: 173.5 kB / 419.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.2937, allocations: 243.5 kB / 420.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2937, allocations: 4 kB / 420.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006839/0.2944, allocations: 340.4 kB / 420.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.2944, allocations: 11.94 kB / 420.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2944, allocations: 4 kB / 420.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/0.2947, allocations: 52.97 kB / 420.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.295, allocations: 67.84 kB / 420.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.2964, allocations: 1.568 MB / 422.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.2967, allocations: 43.67 kB / 422.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.2968, allocations: 12 kB / 422.2 MB, free: 3.504 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * 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: 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002278/0.297, allocations: 153.8 kB / 422.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.402e-05/0.2971, allocations: 35.56 kB / 422.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.628e-05/0.2971, allocations: 26.17 kB / 422.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2971, allocations: 4 kB / 422.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2971, allocations: 0 / 422.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.066e-06/0.2972, allocations: 3.984 kB / 422.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004117/0.2976, allocations: 337.5 kB / 422.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.2976, allocations: 0 / 422.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/0.2978, allocations: 39.91 kB / 422.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001946/0.298, allocations: 60.73 kB / 422.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/0.298, allocations: 4 kB / 422.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.2993, allocations: 1.422 MB / 424.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2993, allocations: 0 / 424.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007/0.3, allocations: 352.7 kB / 424.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.3001, allocations: 120.8 kB / 424.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.3002, allocations: 0 / 424.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.3003, allocations: 24.05 kB / 424.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.236e-05/0.3004, allocations: 31.89 kB / 424.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.3005, allocations: 11.94 kB / 424.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001809/0.3007, allocations: 186 kB / 425 MB, free: 484 kB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3007, allocations: 0 / 425 MB, free: 484 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.3011, allocations: 87.75 kB / 425.1 MB, free: 396 kB / 334.1 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 (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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/0.3021, allocations: 0.8862 MB / 426 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006757/0.3028, allocations: 315.4 kB / 426.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3028, allocations: 0 / 426.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003134/0.3032, allocations: 207.6 kB / 426.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.3035, allocations: 38.66 kB / 426.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/0.3076, allocations: 2.897 MB / 429.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.308, allocations: 0.7752 MB / 430.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.3081, allocations: 26.28 kB / 430.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.3082, allocations: 99.41 kB / 430.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3082, allocations: 0 / 430.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.3349, allocations: 6.159 MB / 436.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.72, allocations: 4.719 kB / 436.5 MB, free: 4.945 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches